Skip to content

Commit 34ff141

Browse files
authored
Merge pull request #1164 from xymus/reenable-sdk-name
Pass down SDK name to the compiler by default
2 parents 34625a4 + 6817849 commit 34ff141

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Sources/SwiftDriver/Toolchains/DarwinToolchain.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,7 @@ public final class DarwinToolchain: Toolchain {
377377
commandLine.append(.flag(sdkInfo.sdkVersion(for: targetVariantTriple).sdkVersionString))
378378
}
379379

380-
if driver.isFrontendArgSupported(.targetSdkName) &&
381-
env["ENABLE_RESTRICT_SWIFTMODULE_SDK"] != nil {
380+
if driver.isFrontendArgSupported(.targetSdkName) {
382381
commandLine.append(.flag(Option.targetSdkName.spelling))
383382
commandLine.append(.flag(sdkInfo.canonicalName))
384383
}

Tests/SwiftDriverTests/SwiftDriverTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3931,7 +3931,6 @@ final class SwiftDriverTests: XCTestCase {
39313931
// Test cases ported from Driver/macabi-environment.swift
39323932
func testDarwinSDKVersioning() throws {
39333933
var envVars = ProcessEnv.vars
3934-
envVars["ENABLE_RESTRICT_SWIFTMODULE_SDK"] = "YES"
39353934
envVars["SWIFT_DRIVER_LD_EXEC"] = ld.nativePathString(escaped: false)
39363935

39373936
try withTemporaryDirectory { tmpDir in

0 commit comments

Comments
 (0)