[SR-9216] Don't honor SDKROOT in interpreter mode #51705
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
good first issue
Good for newcomers
legacy driver
Area → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver project
Additional Detail from JIRA
md5: f3641cf6b439af1689bb8109248eccef
Issue Description:
People have tried to use Swift in Xcode Run Script build phases, but because Swift looks at the SDKROOT environment variable, the Run Script phase will fail when building a non-macOS target:
We should just ignore SDKROOT when running the interpreter. Swift knows how to invoke
xcrun
to find the right SDK when it's not passed one explicitly.The text was updated successfully, but these errors were encountered: