Always enable assertions in OmpSs-2 LLVM
There are important assertions for OmpSs-2 to catch early bugs. Building without asserts enabled causes warnings due to unused variables. Reviewed-By: Rodrigo Arias Mallo <rodrigo.arias@bsc.es> Tested-By: Rodrigo Arias Mallo <rodrigo.arias@bsc.es>
This commit is contained in:
parent
f605f8e5e4
commit
85c70a8d6b
@ -85,7 +85,6 @@ in stdenv.mkDerivation rec {
|
|||||||
cmakeBuildType = if enableDebug then "Debug" else "Release";
|
cmakeBuildType = if enableDebug then "Debug" else "Release";
|
||||||
|
|
||||||
dontUseCmakeBuildDir = true;
|
dontUseCmakeBuildDir = true;
|
||||||
enableAssertions = if enableDebug then "ON" else "OFF";
|
|
||||||
|
|
||||||
# Fix the host triple, as it has changed in a newer config.guess:
|
# Fix the host triple, as it has changed in a newer config.guess:
|
||||||
# https://git.savannah.gnu.org/gitweb/?p=config.git;a=commitdiff;h=ca9bfb8cc75a2be1819d89c664a867785c96c9ba
|
# https://git.savannah.gnu.org/gitweb/?p=config.git;a=commitdiff;h=ca9bfb8cc75a2be1819d89c664a867785c96c9ba
|
||||||
@ -105,7 +104,7 @@ in stdenv.mkDerivation rec {
|
|||||||
"-DCMAKE_EXE_LINKER_FLAGS_DEBUG=-Wl,-gdb-index"
|
"-DCMAKE_EXE_LINKER_FLAGS_DEBUG=-Wl,-gdb-index"
|
||||||
"-DLLVM_LIT_ARGS=-sv --xunit-xml-output=xunit.xml"
|
"-DLLVM_LIT_ARGS=-sv --xunit-xml-output=xunit.xml"
|
||||||
"-DLLVM_ENABLE_PROJECTS=clang;openmp;compiler-rt;lld"
|
"-DLLVM_ENABLE_PROJECTS=clang;openmp;compiler-rt;lld"
|
||||||
"-DLLVM_ENABLE_ASSERTIONS=${enableAssertions}"
|
"-DLLVM_ENABLE_ASSERTIONS=ON"
|
||||||
"-DLLVM_INSTALL_TOOLCHAIN_ONLY=ON"
|
"-DLLVM_INSTALL_TOOLCHAIN_ONLY=ON"
|
||||||
"-DCMAKE_INSTALL_BINDIR=bin"
|
"-DCMAKE_INSTALL_BINDIR=bin"
|
||||||
"-DLLVM_ENABLE_ZLIB=FORCE_ON"
|
"-DLLVM_ENABLE_ZLIB=FORCE_ON"
|
||||||
|
Loading…
Reference in New Issue
Block a user