llvm: add debug builds support

This commit is contained in:
Nikolay Amiantov
2015-10-03 14:16:41 +03:00
parent 9d430e6446
commit e2e4e59975
5 changed files with 10 additions and 6 deletions

View File

@@ -12,6 +12,7 @@
, version
, zlib
, compiler-rt_src
, debugVersion ? false
}:
let
@@ -41,7 +42,7 @@ in stdenv.mkDerivation rec {
'';
cmakeFlags = with stdenv; [
"-DCMAKE_BUILD_TYPE=Release"
"-DCMAKE_BUILD_TYPE=${if debugVersion then "Debug" else "Release"}"
"-DLLVM_BUILD_TESTS=ON"
"-DLLVM_ENABLE_FFI=ON"
"-DLLVM_REQUIRES_RTTI=1"