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:
Kuba (Brecka) Mracek
2020-09-11 08:09:14 -07:00
committed by GitHub
parent 9fb7769700
commit aa0f8e670b
8 changed files with 19 additions and 4 deletions

View File

@@ -15,7 +15,7 @@
#include "../SwiftShims/FoundationShims.h"
#include <stdlib.h>
#if defined(__APPLE__) && defined(__MACH__)
#if defined(__APPLE__) && defined(__MACH__) && defined(SWIFT_RUNTIME_OS_VERSIONING)
#if SWIFT_CLASS_IS_SWIFT_MASK_GLOBAL_VARIABLE
static unsigned long long computeIsSwiftMask() {