mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add a SWIFT_STDLIB_OS_VERSIONING flag to avoid querying OS version at runtime, use it in the freestanding build (#33791)
This commit is contained in:
committed by
GitHub
parent
9fb7769700
commit
aa0f8e670b
@@ -196,6 +196,7 @@ KNOWN_SETTINGS=(
|
||||
swift-enable-compatibility-overrides "1" "whether to support back-deploying compatibility fixes for newer apps running on older runtimes"
|
||||
swift-runtime-macho-no-dyld "0" "whether to build stdlib assuming the runtime environment does not support dynamic modules"
|
||||
swift-stdlib-single-threaded-runtime "0" "whether to build stdlib as a single-threaded runtime only"
|
||||
swift-stdlib-os-versioning "1" "whether to build stdlib with availability based on OS versions (Darwin only)"
|
||||
|
||||
## FREESTANDING Stdlib Options
|
||||
swift-freestanding-sdk "" "which SDK to use when building the FREESTANDING stdlib"
|
||||
@@ -1776,6 +1777,7 @@ for host in "${ALL_HOSTS[@]}"; do
|
||||
-DSWIFT_STDLIB_SINGLE_THREADED_RUNTIME:BOOL=$(true_false "${SWIFT_STDLIB_SINGLE_THREADED_RUNTIME}")
|
||||
-DSWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS:BOOL=$(true_false "${SWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS}")
|
||||
-DSWIFT_RUNTIME_MACHO_NO_DYLD:BOOL=$(true_false "${SWIFT_RUNTIME_MACHO_NO_DYLD}")
|
||||
-DSWIFT_STDLIB_OS_VERSIONING:BOOL=$(true_false "${SWIFT_STDLIB_OS_VERSIONING}")
|
||||
-DSWIFT_NATIVE_LLVM_TOOLS_PATH:STRING="${native_llvm_tools_path}"
|
||||
-DSWIFT_NATIVE_CLANG_TOOLS_PATH:STRING="${native_clang_tools_path}"
|
||||
-DSWIFT_NATIVE_SWIFT_TOOLS_PATH:STRING="${native_swift_tools_path}"
|
||||
|
||||
Reference in New Issue
Block a user