diff --git a/compiler/ghc/default.nix b/compiler/ghc/default.nix index 9591df28a..18782b3be 100644 --- a/compiler/ghc/default.nix +++ b/compiler/ghc/default.nix @@ -236,7 +236,7 @@ let if targetPlatform.isGhcjs then [ buildPackages.emscripten ] else if hostPlatform == buildPlatform - then [ targetPackages.stdenv.cc ] ++ lib.optionals useLLVM [llvmPackages.llvm llvmPackages.clang] + then [ targetPackages.stdenv.cc ] ++ lib.optionals useLLVM ([llvmPackages.llvm] ++ lib.optional (!targetPlatform.useAndroidPrebuilt) llvmPackages.clang) else assert targetPlatform == hostPlatform; # build != host == target [ stdenv.cc ] ++ lib.optional useLLVM buildLlvmPackages.llvm;