mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Teach the driver to pass the SDK version it computes (from the SDK settings JSON in a Darwin-based platform's SDK) down into the frontend. The frontend then sets that SDK version in the LLVM module, which eventually makes its way into the Mach-O file. Last part of rdar://problem/60332732.
9 lines
680 B
Swift
9 lines
680 B
Swift
// Check reading the SDKSettings.json from an SDK
|
|
// RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-macosx10.9 -sdk %S/Inputs/MacOSX10.15.versioned.sdk %s 2>&1 | %FileCheck -check-prefix MACOS_10_15 %s
|
|
// RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-macosx10.9 -sdk %S/Inputs/MacOSX10.15.4.versioned.sdk %s 2>&1 | %FileCheck -check-prefix MACOS_10_15_4 %s
|
|
// RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-macosx10.9 -sdk %S/Inputs/MacOSX10.15.sdk %s 2>&1 | %FileCheck -check-prefix MACOS_UNVERSIONED %s
|
|
|
|
// MACOS_10_15: -target-sdk-version 10.15
|
|
// MACOS_10_15_4: -target-sdk-version 10.15.4
|
|
// MACOS_UNVERSIONED-NOT: -target-sdk-version
|