Disable assertions in clang
This commit is contained in:
parent
0f2b4754fd
commit
ee5964a984
@ -41,6 +41,7 @@ stdenv.mkDerivation rec {
|
||||
cmakeBuildType = if enableDebug then "Debug" else "Release";
|
||||
|
||||
dontUseCmakeBuildDir = true;
|
||||
enableAssertions = "OFF";
|
||||
|
||||
preConfigure = ''
|
||||
mkdir -p build
|
||||
@ -52,7 +53,7 @@ stdenv.mkDerivation rec {
|
||||
"-DCMAKE_EXE_LINKER_FLAGS_DEBUG=-Wl,-gdb-index"
|
||||
"-DLLVM_LIT_ARGS=-sv --xunit-xml-output=xunit.xml"
|
||||
"-DLLVM_ENABLE_PROJECTS=clang;openmp;compiler-rt"
|
||||
"-DLLVM_ENABLE_ASSERTIONS=ON"
|
||||
"-DLLVM_ENABLE_ASSERTIONS=${enableAssertions}"
|
||||
"-DLLVM_INSTALL_TOOLCHAIN_ONLY=ON"
|
||||
)
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user