Commit 6707fa40 authored by Rahul Butani's avatar Rahul Butani Committed by Raito Bezarius
Browse files

llvmPackages_git.compiler-rt: fixes for Darwin

Partial port of 00839fea
("llvmPackages_15.compiler-rt: fixes for Darwin")

see: https://github.com/NixOS/nixpkgs/pull/194634#issuecomment-1272116014
parent 403b148a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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" ];