Skip to content

Teach fake xcrun to also accept -sdk#464

Merged
giordano merged 1 commit intomasterfrom
mh/xcrun-fix
Feb 15, 2026
Merged

Teach fake xcrun to also accept -sdk#464
giordano merged 1 commit intomasterfrom
mh/xcrun-fix

Conversation

@fingolfin
Copy link
Member

@fingolfin fingolfin commented Feb 15, 2026

The macos xcrun command officiall only supports --sdk, but in practice also -sdk works, and may be used by some (e.g. Julia's build system...).

I've also submitted a fix to Julia but I think it's wise to be defensive here, as other projects may be also using this.

The macos xcrun command officiall only supports --sdk, but in
practice also -sdk works, and may be used by some (e.g. Julia's
build system...)
@giordano giordano merged commit 5c0d8b1 into master Feb 15, 2026
9 checks passed
@giordano giordano deleted the mh/xcrun-fix branch February 15, 2026 15:39
fingolfin added a commit to JuliaLang/julia that referenced this pull request Feb 15, 2026
The officially supported argument is --sdk, not -sdk, though it seems
the later also works in practice. But with BinaryBuilder, we use a
'fake' xcrun script which only supports the officially documented
argument name.

I've also submitted a [PR to let BinaryBuilderBase.jl accept
this](JuliaPackaging/BinaryBuilderBase.jl#464);
but I think it's wise for us to stick to the officially documented
options.
KristofferC pushed a commit to JuliaLang/julia that referenced this pull request Feb 25, 2026
The officially supported argument is --sdk, not -sdk, though it seems
the later also works in practice. But with BinaryBuilder, we use a
'fake' xcrun script which only supports the officially documented
argument name.

I've also submitted a [PR to let BinaryBuilderBase.jl accept
this](JuliaPackaging/BinaryBuilderBase.jl#464);
but I think it's wise for us to stick to the officially documented
options.

(cherry picked from commit 4820747)
KristofferC pushed a commit to JuliaLang/julia that referenced this pull request Mar 3, 2026
The officially supported argument is --sdk, not -sdk, though it seems
the later also works in practice. But with BinaryBuilder, we use a
'fake' xcrun script which only supports the officially documented
argument name.

I've also submitted a [PR to let BinaryBuilderBase.jl accept
this](JuliaPackaging/BinaryBuilderBase.jl#464);
but I think it's wise for us to stick to the officially documented
options.

(cherry picked from commit 4820747)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants