summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-10-08 11:02:06 +0000
committerGitHub <noreply@github.com>2019-10-08 11:02:06 +0000
commit392eebdb280b4e58dfcf7725dd690e0b97a3a1b9 (patch)
tree22f9d79bf9ce31ec19387b79f55c8b30f78fda0f /pkgs
parent22b401490011d2766cd9e31f11432f6c9d434aaf (diff)
parent3bfe0872b9627264482da2bc0a10d3b1b80c2a0a (diff)
downloadnixpkgs-392eebdb280b4e58dfcf7725dd690e0b97a3a1b9.tar
nixpkgs-392eebdb280b4e58dfcf7725dd690e0b97a3a1b9.tar.gz
nixpkgs-392eebdb280b4e58dfcf7725dd690e0b97a3a1b9.tar.bz2
nixpkgs-392eebdb280b4e58dfcf7725dd690e0b97a3a1b9.tar.lz
nixpkgs-392eebdb280b4e58dfcf7725dd690e0b97a3a1b9.tar.xz
nixpkgs-392eebdb280b4e58dfcf7725dd690e0b97a3a1b9.tar.zst
nixpkgs-392eebdb280b4e58dfcf7725dd690e0b97a3a1b9.zip
Merge pull request #70544 from d-goldin/fix_qtweb_warning_clang
qt5.{qtwebengine, qtwebkit}: fix -Wno-class-memaccess warning for clang
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/qt-5/modules/qtwebengine.nix2
-rw-r--r--pkgs/development/libraries/qt-5/modules/qtwebkit.nix7
2 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/development/libraries/qt-5/modules/qtwebengine.nix b/pkgs/development/libraries/qt-5/modules/qtwebengine.nix
index c96aef3f4da..df444eee2eb 100644
--- a/pkgs/development/libraries/qt-5/modules/qtwebengine.nix
+++ b/pkgs/development/libraries/qt-5/modules/qtwebengine.nix
@@ -103,7 +103,7 @@ EOF
       --replace 'libs = [ "sandbox" ]' 'libs = [ "/usr/lib/libsandbox.1.dylib" ]'
     '');
 
-  NIX_CFLAGS_COMPILE = [
+  NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [
     # with gcc8, -Wclass-memaccess became part of -Wall and this exceeds the logging limit
     "-Wno-class-memaccess"
   ] ++ lib.optionals (stdenv.hostPlatform.platform.gcc.arch or "" == "sandybridge") [
diff --git a/pkgs/development/libraries/qt-5/modules/qtwebkit.nix b/pkgs/development/libraries/qt-5/modules/qtwebkit.nix
index 78404ddffa8..542afdd55da 100644
--- a/pkgs/development/libraries/qt-5/modules/qtwebkit.nix
+++ b/pkgs/development/libraries/qt-5/modules/qtwebkit.nix
@@ -50,13 +50,12 @@ qtModule {
     export qmakeFlags="$qmakeFlags CONFIG+=silent"
   '';
 
-  NIX_CFLAGS_COMPILE =
-    [
+  NIX_CFLAGS_COMPILE = [
       # with gcc7 this warning blows the log over Hydra's limit
       "-Wno-expansion-to-defined"
-      # with gcc8, -Wclass-memaccess became part of -Wall and this too exceeds the logging limit
-      "-Wno-class-memaccess"
     ]
+    # with gcc8, -Wclass-memaccess became part of -Wall and this too exceeds the logging limit
+    ++ optional stdenv.cc.isGNU "-Wno-class-memaccess"
     # with clang this warning blows the log over Hydra's limit
     ++ optional stdenv.isDarwin "-Wno-inconsistent-missing-override"
     ++ optionals flashplayerFix