File tree Expand file tree Collapse file tree 8 files changed +16
-0
lines changed Expand file tree Collapse file tree 8 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,8 @@ add_compile_options(
182
182
# frontned and `clang-cl` (and `clang`) currently do not support `/WX:nnnn`. As
183
183
# a compromise, treat all linker warnings as errors.
184
184
add_link_options ($<$<PLATFORM_ID:Windows>:LINKER:/WX>)
185
+ # Ensure all symbols are fully resolved on Linux
186
+ add_link_options ($<$<PLATFORM_ID:Linux>:LINKER:-z,defs>)
185
187
186
188
add_compile_options (
187
189
$<$<COMPILE_LANGUAGE:Swift>:-explicit-module-build >
Original file line number Diff line number Diff line change @@ -94,6 +94,8 @@ include(ExperimentalFeatures)
94
94
# frontned and `clang-cl` (and `clang`) currently do not support `/WX:nnnn`. As
95
95
# a compromise, treat all linker warnings as errors.
96
96
add_link_options ($<$<PLATFORM_ID:Windows>:LINKER:/WX>)
97
+ # Ensure all symbols are fully resolved on Linux
98
+ add_link_options ($<$<PLATFORM_ID:Linux>:LINKER:-z,defs>)
97
99
98
100
include (ExperimentalFeatures)
99
101
Original file line number Diff line number Diff line change @@ -88,6 +88,8 @@ add_compile_options(
88
88
# FIXME(#83444) - enable this once we fix DLL storage for
89
89
# `_fatalErrorForwardModeDifferentiationDisabled`
90
90
# add_link_options($<$<PLATFORM_ID:Windows>:LINKER:/WX>)
91
+ # Ensure all symbols are fully resolved on Linux
92
+ add_link_options ($<$<PLATFORM_ID:Linux>:LINKER:-z,defs>)
91
93
92
94
if (SwiftDifferentiation_ENABLE_VECTOR_TYPES)
93
95
gyb_expand(SIMDDifferentiation.swift.gyb SIMDDifferentiation.swift)
Original file line number Diff line number Diff line change @@ -98,6 +98,8 @@ add_compile_options(
98
98
# frontned and `clang-cl` (and `clang`) currently do not support `/WX:nnnn`. As
99
99
# a compromise, treat all linker warnings as errors.
100
100
add_link_options ($<$<PLATFORM_ID:Windows>:LINKER:/WX>)
101
+ # Ensure all symbols are fully resolved on Linux
102
+ add_link_options ($<$<PLATFORM_ID:Linux>:LINKER:-z,defs>)
101
103
102
104
add_library (swiftDistributed
103
105
DistributedActor.cpp
Original file line number Diff line number Diff line change @@ -83,6 +83,8 @@ add_compile_options(
83
83
# frontned and `clang-cl` (and `clang`) currently do not support `/WX:nnnn`. As
84
84
# a compromise, treat all linker warnings as errors.
85
85
add_link_options ($<$<PLATFORM_ID:Windows>:LINKER:/WX>)
86
+ # Ensure all symbols are fully resolved on Linux
87
+ add_link_options ($<$<PLATFORM_ID:Linux>:LINKER:-z,defs>)
86
88
87
89
add_library (swiftObservation
88
90
Sources /Observation/Locking.swift
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ add_compile_options(
65
65
# frontned and `clang-cl` (and `clang`) currently do not support `/WX:nnnn`. As
66
66
# a compromise, treat all linker warnings as errors.
67
67
add_link_options ($<$<PLATFORM_ID:Windows>:LINKER:/WX>)
68
+ # Ensure all symbols are fully resolved on Linux
69
+ add_link_options ($<$<PLATFORM_ID:Linux>:LINKER:-z,defs>)
68
70
69
71
add_subdirectory (_RegexParser)
70
72
add_subdirectory (_StringProcessing)
Original file line number Diff line number Diff line change @@ -101,6 +101,8 @@ add_compile_options(
101
101
# frontned and `clang-cl` (and `clang`) currently do not support `/WX:nnnn`. As
102
102
# a compromise, treat all linker warnings as errors.
103
103
add_link_options ($<$<PLATFORM_ID:Windows>:LINKER:/WX>)
104
+ # Ensure all symbols are fully resolved on Linux
105
+ add_link_options ($<$<PLATFORM_ID:Linux>:LINKER:-z,defs>)
104
106
105
107
gyb_expand(Atomics/AtomicIntegers.swift.gyb Atomics/AtomicIntegers.swift)
106
108
gyb_expand(Atomics/AtomicStorage.swift.gyb Atomics/AtomicStorage.swift)
Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ add_compile_options(
77
77
# frontend and `clang-cl` (and `clang`) currently do not support `/WX:nnnn`. As
78
78
# a compromise, treat all linker warnings as errors.
79
79
add_link_options ($<$<PLATFORM_ID:Windows>:LINKER:/WX>)
80
+ # Ensure all symbols are fully resolved on Linux
81
+ add_link_options ($<$<PLATFORM_ID:Linux>:LINKER:-z,defs>)
80
82
81
83
add_library (swift_Volatile
82
84
Volatile.swift)
You can’t perform that action at this time.
0 commit comments