mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
qt5: debug flag should never be null
This commit is contained in:
parent
c1720b412b
commit
4a39533ab3
|
@ -24,7 +24,7 @@ top-level attribute to `top-level/all-packages.nix`.
|
|||
# options
|
||||
developerBuild ? false,
|
||||
decryptSslTraffic ? false,
|
||||
debug ? null,
|
||||
debug ? false,
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
|
|
@ -33,7 +33,7 @@ existing packages here and modify it as necessary.
|
|||
# options
|
||||
developerBuild ? false,
|
||||
decryptSslTraffic ? false,
|
||||
debug ? null,
|
||||
debug ? false,
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
|
|
@ -24,7 +24,7 @@ top-level attribute to `top-level/all-packages.nix`.
|
|||
# options
|
||||
developerBuild ? false,
|
||||
decryptSslTraffic ? false,
|
||||
debug ? null,
|
||||
debug ? false,
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
|
|
@ -11,20 +11,18 @@ let
|
|||
|
||||
qmakeFlags =
|
||||
(args.qmakeFlags or [])
|
||||
++ optional (debug != null)
|
||||
(if debug then "CONFIG+=debug" else "CONFIG+=release");
|
||||
++ [ ("CONFIG+=" + (if debug then "debug" else "release")) ];
|
||||
|
||||
NIX_CFLAGS_COMPILE =
|
||||
let arg = args.NIX_CFLAGS_COMPILE or []; in
|
||||
optional (debug == true) "-DQT_NO_DEBUG"
|
||||
++ (if builtins.isList arg then arg else [arg]);
|
||||
optional (!debug) "-DQT_NO_DEBUG"
|
||||
++ lib.toList (args.NIX_CFLAGS_COMPILE or []);
|
||||
|
||||
cmakeFlags =
|
||||
(args.cmakeFlags or [])
|
||||
++ [ "-DBUILD_TESTING=OFF" ]
|
||||
++ optional (debug != null)
|
||||
(if debug then "-DCMAKE_BUILD_TYPE=Debug"
|
||||
else "-DCMAKE_BUILD_TYPE=Release");
|
||||
++ [
|
||||
"-DBUILD_TESTING=OFF"
|
||||
("-DCMAKE_BUILD_TYPE=" + (if debug then "Debug" else "Release"))
|
||||
];
|
||||
|
||||
enableParallelBuilding = args.enableParallelBuilding or true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue