Merge pull request #34047 from ttuegel/bugfix/qt-5/NIX_CFLAGS_COMPILE
Qt 5: Fix debug flags
This commit is contained in:
commit
88464ecaca
@ -24,7 +24,7 @@ top-level attribute to `top-level/all-packages.nix`.
|
|||||||
# options
|
# options
|
||||||
developerBuild ? false,
|
developerBuild ? false,
|
||||||
decryptSslTraffic ? false,
|
decryptSslTraffic ? false,
|
||||||
debug ? null,
|
debug ? false,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
@ -33,7 +33,7 @@ existing packages here and modify it as necessary.
|
|||||||
# options
|
# options
|
||||||
developerBuild ? false,
|
developerBuild ? false,
|
||||||
decryptSslTraffic ? false,
|
decryptSslTraffic ? false,
|
||||||
debug ? null,
|
debug ? false,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
@ -24,7 +24,7 @@ top-level attribute to `top-level/all-packages.nix`.
|
|||||||
# options
|
# options
|
||||||
developerBuild ? false,
|
developerBuild ? false,
|
||||||
decryptSslTraffic ? false,
|
decryptSslTraffic ? false,
|
||||||
debug ? null,
|
debug ? false,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
@ -11,17 +11,18 @@ let
|
|||||||
|
|
||||||
qmakeFlags =
|
qmakeFlags =
|
||||||
(args.qmakeFlags or [])
|
(args.qmakeFlags or [])
|
||||||
++ optional (debug != null)
|
++ [ ("CONFIG+=" + (if debug then "debug" else "release")) ];
|
||||||
(if debug then "CONFIG+=debug" else "CONFIG+=release");
|
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = optional (debug != null) "-DQT_NO_DEBUG";
|
NIX_CFLAGS_COMPILE =
|
||||||
|
optional (!debug) "-DQT_NO_DEBUG"
|
||||||
|
++ lib.toList (args.NIX_CFLAGS_COMPILE or []);
|
||||||
|
|
||||||
cmakeFlags =
|
cmakeFlags =
|
||||||
(args.cmakeFlags or [])
|
(args.cmakeFlags or [])
|
||||||
++ [ "-DBUILD_TESTING=OFF" ]
|
++ [
|
||||||
++ optional (debug != null)
|
"-DBUILD_TESTING=OFF"
|
||||||
(if debug then "-DCMAKE_BUILD_TYPE=Debug"
|
("-DCMAKE_BUILD_TYPE=" + (if debug then "Debug" else "Release"))
|
||||||
else "-DCMAKE_BUILD_TYPE=Release");
|
];
|
||||||
|
|
||||||
enableParallelBuilding = args.enableParallelBuilding or true;
|
enableParallelBuilding = args.enableParallelBuilding or true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user