summary refs log tree commit diff
path: root/pkgs/build-support/cc-wrapper
diff options
context:
space:
mode:
authors1341 <s1341@github.com>2021-02-10 20:38:17 +0200
committerJohn Ericson <John.Ericson@Obsidian.Systems>2021-03-04 18:17:39 +0000
commitaee60bef7a615c93de5fb726a1c85aeb45e99aa0 (patch)
tree4547a351c38dda41ae9604a0ddb16941fdd526f0 /pkgs/build-support/cc-wrapper
parent739381f0c1bef136ed822b15dfa7a6587d9da636 (diff)
downloadnixpkgs-aee60bef7a615c93de5fb726a1c85aeb45e99aa0.tar
nixpkgs-aee60bef7a615c93de5fb726a1c85aeb45e99aa0.tar.gz
nixpkgs-aee60bef7a615c93de5fb726a1c85aeb45e99aa0.tar.bz2
nixpkgs-aee60bef7a615c93de5fb726a1c85aeb45e99aa0.tar.lz
nixpkgs-aee60bef7a615c93de5fb726a1c85aeb45e99aa0.tar.xz
nixpkgs-aee60bef7a615c93de5fb726a1c85aeb45e99aa0.tar.zst
nixpkgs-aee60bef7a615c93de5fb726a1c85aeb45e99aa0.zip
android_prebuilt: Fix eval
Diffstat (limited to 'pkgs/build-support/cc-wrapper')
-rw-r--r--pkgs/build-support/cc-wrapper/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix
index c8af8789fcc..65f9791597e 100644
--- a/pkgs/build-support/cc-wrapper/default.nix
+++ b/pkgs/build-support/cc-wrapper/default.nix
@@ -298,7 +298,10 @@ stdenv.mkDerivation {
     # vs libstdc++, etc.) since Darwin isn't `useLLVM` on all counts. (See
     # https://clang.llvm.org/docs/Toolchain.html for all the axes one might
     # break `useLLVM` into.)
-    + optionalString (isClang && gccForLibs != null && targetPlatform.isLinux && !(stdenv.targetPlatform.useLLVM or false)) ''
+    + optionalString (isClang && gccForLibs != null
+                      && targetPlatform.isLinux
+                      && !(stdenv.targetPlatform.useAndroidPrebuilt or false)
+                      && !(stdenv.targetPlatform.useLLVM or false)) ''
       echo "--gcc-toolchain=${gccForLibs}" >> $out/nix-support/cc-cflags
     ''