Skip to content

Commit

Permalink
minivmac: don't set -isysroot on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys-T committed Nov 17, 2024
1 parent 741a116 commit 5a0db42
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/minivmac/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ let
s/$/ WriteCStrToDestFile("@CC@"); return; /
}
${lib.optionalString hostPlatform.isDarwin ''
/LOCALPROC Write\w+LinkOSGlucompileCommonOptions/ {
n
s/$/ return; /
}
/-mmacosx-version-min/s@^@//@
''}
' "$file"; substituteInPlace "$file" --replace-quiet '@CC@' "$CC"
Expand Down

0 comments on commit 5a0db42

Please sign in to comment.