mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
build: remove TARGET_SDKS from the runtime
The runtime and stubs are built for ALL targets, not specific ones. This allows us to configure when cross-compiling to Windows again. Collapse the dual addition of the swiftRuntime into a single build. This unifies the runtime build for the apple and non-Apple SDKs. The difference here was the ObjC interop sources. In order to deal with that unification add a CPP macro to indicate whether the interop sources should be included or not.
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if !defined(__APPLE__)
|
||||
#include "swift/Basic/Lazy.h"
|
||||
#include "swift/Runtime/Config.h"
|
||||
#include "swift/Runtime/Debug.h"
|
||||
@@ -283,3 +284,5 @@ swift::_swift_stdlib_unicode_strToLower(uint16_t *Destination,
|
||||
}
|
||||
|
||||
swift::Lazy<ASCIICollation> ASCIICollation::theTable;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user