about summary refs log tree commit diff
path: root/pkgs/development/compilers/llvm/git
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2023-07-23 23:45:18 +0200
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-09-08 14:18:26 +0000
commitfccf04b6200b711977dbfe9a59e3356bfe768932 (patch)
tree1665b93c9751bc6dd2aee010f83aaf16c02ff1d9 /pkgs/development/compilers/llvm/git
parentf9b9cc2c4ddeb52210b74d97f3c9d4cc27c9601b (diff)
downloadnixlib-fccf04b6200b711977dbfe9a59e3356bfe768932.tar
nixlib-fccf04b6200b711977dbfe9a59e3356bfe768932.tar.gz
nixlib-fccf04b6200b711977dbfe9a59e3356bfe768932.tar.bz2
nixlib-fccf04b6200b711977dbfe9a59e3356bfe768932.tar.lz
nixlib-fccf04b6200b711977dbfe9a59e3356bfe768932.tar.xz
nixlib-fccf04b6200b711977dbfe9a59e3356bfe768932.tar.zst
nixlib-fccf04b6200b711977dbfe9a59e3356bfe768932.zip
treewide: replace -DCMAKE_BUILD_TYPE in cmakeFlags with cmakeBuildType
Diffstat (limited to 'pkgs/development/compilers/llvm/git')
-rw-r--r--pkgs/development/compilers/llvm/git/llvm/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/compilers/llvm/git/llvm/default.nix b/pkgs/development/compilers/llvm/git/llvm/default.nix
index 634cd7829533..66b0a7438cef 100644
--- a/pkgs/development/compilers/llvm/git/llvm/default.nix
+++ b/pkgs/development/compilers/llvm/git/llvm/default.nix
@@ -283,6 +283,8 @@ in stdenv.mkDerivation (rec {
   # E.g. mesa.drivers use the build-id as a cache key (see #93946):
   LDFLAGS = optionalString (enableSharedLibraries && !stdenv.isDarwin) "-Wl,--build-id=sha1";
 
+  cmakeBuildType = if debugVersion then "Debug" else "Release";
+
   cmakeFlags = with stdenv; let
     # These flags influence llvm-config's BuildVariables.inc in addition to the
     # general build. We need to make sure these are also passed via
@@ -298,7 +300,6 @@ in stdenv.mkDerivation (rec {
       "-DLLVM_LINK_LLVM_DYLIB=ON"
     ];
   in flagsForLlvmConfig ++ [
-    "-DCMAKE_BUILD_TYPE=${if debugVersion then "Debug" else "Release"}"
     "-DLLVM_INSTALL_UTILS=ON"  # Needed by rustc
     "-DLLVM_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
     "-DLLVM_ENABLE_FFI=ON"