From 7cc3bb2d27943f402b6e01236e30178185955e3b Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Tue, 28 Jul 2026 06:00:00 -0400 Subject: [PATCH] cling: use cmakeBuildType instead of explicit -D Ref: https://github.com/NixOS/nixpkgs/issues/427019 Ref: https://nixos.org/manual/nixpkgs/stable/#cmake-build-type --- pkgs/by-name/cl/cling/package.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/cl/cling/package.nix b/pkgs/by-name/cl/cling/package.nix index 9b413ce677a6..f6a0f6626e34 100644 --- a/pkgs/by-name/cl/cling/package.nix +++ b/pkgs/by-name/cl/cling/package.nix @@ -79,6 +79,8 @@ let strictDeps = true; + cmakeBuildType = if debug then "Debug" else "Release"; + cmakeFlags = [ "-DLLVM_EXTERNAL_PROJECTS=cling" "-DLLVM_EXTERNAL_CLING_SOURCE_DIR=../../cling-source" @@ -87,12 +89,6 @@ let "-DLLVM_INCLUDE_TESTS=OFF" "-DLLVM_ENABLE_RTTI=ON" ] - ++ lib.optionals (!debug) [ - "-DCMAKE_BUILD_TYPE=Release" - ] - ++ lib.optionals debug [ - "-DCMAKE_BUILD_TYPE=Debug" - ] ++ lib.optionals useLLVMLibcxx [ "-DLLVM_ENABLE_LIBCXX=ON" "-DLLVM_ENABLE_LIBCXXABI=ON"