about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-10-31 15:54:01 +0000
committerAlyssa Ross <hi@alyssa.is>2020-11-27 13:29:12 +0000
commit7192dc2c01a8ad8e8b0fd9a6bc2afdf7e2527c87 (patch)
treefe65239bb3941266817abb04ad556d61c78a986e /nixpkgs/pkgs/applications
parent21c0d54daca2169d78e44e83bf1e9f80513167da (diff)
downloadnixlib-7192dc2c01a8ad8e8b0fd9a6bc2afdf7e2527c87.tar
nixlib-7192dc2c01a8ad8e8b0fd9a6bc2afdf7e2527c87.tar.gz
nixlib-7192dc2c01a8ad8e8b0fd9a6bc2afdf7e2527c87.tar.bz2
nixlib-7192dc2c01a8ad8e8b0fd9a6bc2afdf7e2527c87.tar.lz
nixlib-7192dc2c01a8ad8e8b0fd9a6bc2afdf7e2527c87.tar.xz
nixlib-7192dc2c01a8ad8e8b0fd9a6bc2afdf7e2527c87.tar.zst
nixlib-7192dc2c01a8ad8e8b0fd9a6bc2afdf7e2527c87.zip
firefox: fix build with clang
> ERROR: --with-clang-path is not valid when the target compiler is clang
Diffstat (limited to 'nixpkgs/pkgs/applications')
-rw-r--r--nixpkgs/pkgs/applications/networking/browsers/firefox/common.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixpkgs/pkgs/applications/networking/browsers/firefox/common.nix b/nixpkgs/pkgs/applications/networking/browsers/firefox/common.nix
index a5c92cafee54..f4e2e067a01b 100644
--- a/nixpkgs/pkgs/applications/networking/browsers/firefox/common.nix
+++ b/nixpkgs/pkgs/applications/networking/browsers/firefox/common.nix
@@ -263,7 +263,7 @@ buildStdenv.mkDerivation ({
     "--with-system-nss"
   ]
   ++ lib.optional (buildStdenv.isDarwin) "--disable-xcode-checks"
-  ++ lib.optional (!ltoSupport) "--with-clang-path=${llvmPackages.clang}/bin/clang"
+  ++ lib.optional (!ltoSupport && !stdenv.cc.isClang) "--with-clang-path=${llvmPackages.clang}/bin/clang"
   # LTO is done using clang and lld on Linux.
   # Darwin needs to use the default linker as lld is not supported (yet?):
   #   https://bugzilla.mozilla.org/show_bug.cgi?id=1538724