Disable assertions in clang

This commit is contained in:
Rodrigo Arias Mallo 2020-07-03 18:34:57 +02:00
parent 0f2b4754fd
commit ee5964a984

View File

@ -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"
)
'';