mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-10-19 07:02:40 +00:00
Use -g0 on riscv64
This commit is contained in:
parent
c2f2da4b7d
commit
e2951087cf
5
debian/rules
vendored
5
debian/rules
vendored
@ -157,8 +157,6 @@ export CC=gcc-$(GCC_VERSION)
|
|||||||
export CXX=g++-$(GCC_VERSION)
|
export CXX=g++-$(GCC_VERSION)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
opt_flags = -O2 -DNDEBUG -g1
|
|
||||||
|
|
||||||
ifneq (,$(findstring $(DEB_HOST_ARCH),armel))
|
ifneq (,$(findstring $(DEB_HOST_ARCH),armel))
|
||||||
STAGE_ALL_CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=arm-linux-gnueabi
|
STAGE_ALL_CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=arm-linux-gnueabi
|
||||||
STAGE_ALL_CMAKE_EXTRA += -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
|
STAGE_ALL_CMAKE_EXTRA += -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
|
||||||
@ -206,6 +204,9 @@ endif
|
|||||||
# more than 2 jobs causes OOM in Ubuntu and slows down build process.
|
# more than 2 jobs causes OOM in Ubuntu and slows down build process.
|
||||||
ifneq (,$(filter $(DEB_HOST_ARCH),riscv64))
|
ifneq (,$(filter $(DEB_HOST_ARCH),riscv64))
|
||||||
NJOBS=2
|
NJOBS=2
|
||||||
|
opt_flags = -O2 -DNDEBUG -g0
|
||||||
|
else
|
||||||
|
opt_flags = -O2 -DNDEBUG -g1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter $(DEB_HOST_ARCH),sparc))
|
ifneq (,$(filter $(DEB_HOST_ARCH),sparc))
|
||||||
|
Loading…
Reference in New Issue
Block a user