qt6.qtbase: do not embed compiler information into generated cmake files

The qt build system embeds information about compilers used during
building qtbase into the generated cmake files, to avoid mixing
different compilers when building qt modules, however this greatly
bloats the closure size of qtbase and the mixed use of compilers is
sometimes desired in Nixpkgs.
This commit is contained in:
Nick Cao 2023-04-13 21:10:50 +08:00
parent 97a538791c
commit d94ae302c6
No known key found for this signature in database

View file

@ -212,6 +212,7 @@ stdenv.mkDerivation rec {
qtQmlPrefix = "lib/qt-6/qml";
cmakeFlags = [
"-DQT_EMBED_TOOLCHAIN_COMPILER=OFF"
"-DINSTALL_PLUGINSDIR=${qtPluginPrefix}"
"-DINSTALL_QMLDIR=${qtQmlPrefix}"
"-DQT_FEATURE_libproxy=ON"