Skip to content

Commit bad30a5

Browse files
authored
[CMake] Remove logic to set unused macro __SWIFT_CURRENT_DYLIB (#22105)
Once upon a time we tried to use this to limit the visibility of symbols in the Swift runtime in a way that didn't really make sense. Dave Z removed it last year in 9182327. No functionality change.
1 parent 3501568 commit bad30a5

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

cmake/modules/SwiftSource.cmake

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ function(handle_swift_sources
7474
# <rdar://problem/15972329>
7575
list(APPEND swift_compile_flags "-force-single-frontend-invocation")
7676

77-
if(SWIFTSOURCES_IS_STDLIB_CORE)
78-
list(APPEND swift_compile_flags "-Xcc" "-D__SWIFT_CURRENT_DYLIB=swiftCore")
79-
endif()
80-
8177
_compile_swift_files(
8278
dependency_target
8379
module_dependency_target

stdlib/public/runtime/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ if(SWIFT_RUNTIME_ENABLE_LEAK_CHECKER)
1818
set(swift_runtime_leaks_sources Leaks.mm)
1919
endif()
2020

21-
list(APPEND swift_runtime_compile_flags
22-
"-D__SWIFT_CURRENT_DYLIB=swiftCore")
23-
2421
set(swift_runtime_objc_sources
2522
ErrorObject.mm
2623
SwiftObject.mm

0 commit comments

Comments
 (0)