From: Michal Sojka Date: Thu, 22 Nov 2018 22:40:50 +0000 (+0100) Subject: Configure clang with LLVM_ENABLE_LLD=ON X-Git-Tag: debian/2018.11-4~1 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/hercules2020/hercules-compiler.git/commitdiff_plain/a59af5800802346ee0f30ab2f6f170406b9f797f Configure clang with LLVM_ENABLE_LLD=ON This enables the use of LLVM linker rather than using GNU linker. With LLVM linker it is possible to use the compiler as a cross-compiler e.g. by using --target=aarch64 switch. --- diff --git a/Makefile b/Makefile index 0db87d9..7cf318e 100644 --- a/Makefile +++ b/Makefile @@ -64,6 +64,7 @@ build/build.ninja: | build llvm/tools/clang llvm/projects/openmp cd $(@D) && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$(PREFIX)" \ -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_ENABLE_BACKTRACES=ON -DLLVM_ENABLE_WERROR=OFF \ -DBUILD_SHARED_LIBS=OFF -DLLVM_ENABLE_RTTI=ON $(LLVM_CROSS_FLAGS) \ + -DLLVM_ENABLE_LLD=ON \ -DCMAKE_CXX_FLAGS='-DHERCULES_PASS_ROOT=\"$(PREFIX)/lib/hercules/src/passes/\" -DOPENMP_NVPTX_COMPUTE_CAPABILITY=62 $(if $(USE_GPUGUARD),-DUSE_GPUGUARD)' \ -DLIBOMPTARGET_NVPTX_COMPUTE_CAPABILITY="62" \ -G"Ninja" $(CURDIR)/llvm