Skip to content

Commit

Permalink
llvmPackages_git.compiler-rt: fixes for Darwin
Browse files Browse the repository at this point in the history
Partial port of 00839fe
("llvmPackages_15.compiler-rt: fixes for Darwin")

see: NixOS#194634 (comment)
  • Loading branch information
rrbutani committed Apr 5, 2023
1 parent ccef8c0 commit e6a57c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/development/compilers/llvm/git/compiler-rt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" ];
Expand Down

0 comments on commit e6a57c7

Please sign in to comment.