Merge pull request #34047 from ttuegel/bugfix/qt-5/NIX_CFLAGS_COMPILE

Qt 5: Fix debug flags
This commit is contained in:
Thomas Tuegel 2018-01-20 11:51:37 -06:00 committed by GitHub
commit 88464ecaca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 10 deletions

View File

@ -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;

View File

@ -33,7 +33,7 @@ existing packages here and modify it as necessary.
# options
developerBuild ? false,
decryptSslTraffic ? false,
debug ? null,
debug ? false,
}:
with stdenv.lib;

View File

@ -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;

View File

@ -11,17 +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 = optional (debug != null) "-DQT_NO_DEBUG";
NIX_CFLAGS_COMPILE =
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;