summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahul Butani <rrbutani@users.noreply.github.com>2022-10-07 17:16:05 -0500
committerRaito Bezarius <masterancpp@gmail.com>2023-04-05 17:29:36 +0200
commit6707fa40560a8244daf3bc1f79a1d38a5524c557 (patch)
treed23ce5fae542ce300c0f14bfda1354254bf4b561
parentMerge master into staging-next (diff)
downloadnixpkgs-origin/llvmPackages_git.compiler-rt.tar.gz
llvmPackages_git.compiler-rt: fixes for Darwinorigin/llvmPackages_git.compiler-rt
Partial port of 00839fea22bfa118b3897519d3a3be0f447dbeb1 ("llvmPackages_15.compiler-rt: fixes for Darwin") see: https://github.com/NixOS/nixpkgs/pull/194634#issuecomment-1272116014
-rw-r--r--pkgs/development/compilers/llvm/git/compiler-rt/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/compilers/llvm/git/compiler-rt/default.nix b/pkgs/development/compilers/llvm/git/compiler-rt/default.nix
index 1abb0a411655..53c0924a07c5 100644
--- a/pkgs/development/compilers/llvm/git/compiler-rt/default.nix
+++ b/pkgs/development/compilers/llvm/git/compiler-rt/default.nix
@@ -66,6 +66,9 @@ stdenv.mkDerivation {
"-DDARWIN_macosx_OVERRIDE_SDK_VERSION=ON"
"-DDARWIN_osx_ARCHS=${stdenv.hostPlatform.darwinArch}"
"-DDARWIN_osx_BUILTIN_ARCHS=${stdenv.hostPlatform.darwinArch}"
+ # `COMPILER_RT_DEFAULT_TARGET_ONLY` does not apply to Darwin:
+ # https://github.com/llvm/llvm-project/blob/27ef42bec80b6c010b7b3729ed0528619521a690/compiler-rt/cmake/base-config-ix.cmake#L153
+ "-DCOMPILER_RT_ENABLE_IOS=OFF"
];
outputs = [ "out" "dev" ];