Commit 3c7fba2b authored by Weijia Wang's avatar Weijia Wang
Browse files

llvmPackages_16.llvm: fix postPatch on darwin

parent 28e89e15
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -163,7 +163,7 @@ in

    # This test tries to call `sw_vers` by absolute path (`/usr/bin/sw_vers`)
    # and thus fails under the sandbox:
    substituteInPlace unittests/Support/Host.cpp \
    substituteInPlace unittests/TargetParser/Host.cpp \
      --replace '/usr/bin/sw_vers' "${(builtins.toString darwin.DarwinTools) + "/bin/sw_vers" }"
  '' + optionalString (stdenv.isDarwin && stdenv.hostPlatform.isx86) ''
    # This test tries to call the intrinsics `@llvm.roundeven.f32` and
@@ -208,7 +208,7 @@ in
    # not clear to me when/where/for what this even gets used in LLVM.
    #
    # TODO(@rrbutani): fix/follow-up
    substituteInPlace unittests/Support/Host.cpp \
    substituteInPlace unittests/TargetParser/Host.cpp \
      --replace "getMacOSHostVersion" "DISABLED_getMacOSHostVersion"

    # This test fails with a `dysmutil` crash; have not yet dug into what's