File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -163,11 +163,16 @@ if(SWIFT_BUILD_STATIC_STDLIB AND "${sdk}" STREQUAL "LINUX")
163
163
INSTALL_IN_COMPONENT never_install )
164
164
endif ()
165
165
166
+ if (SWIFT_STDLIB_USE_NONATOMIC_RC )
167
+ set (_RUNTIME_NONATOMIC_FLAGS -DSWIFT_STDLIB_USE_NONATOMIC_RC )
168
+ endif ()
166
169
add_swift_target_library (swiftRuntime OBJECT_LIBRARY
167
170
${swift_runtime_sources}
168
171
${swift_runtime_objc_sources}
169
172
${swift_runtime_leaks_sources}
170
- C_COMPILE_FLAGS ${swift_runtime_library_compile_flags}
173
+ C_COMPILE_FLAGS
174
+ ${swift_runtime_library_compile_flags}
175
+ ${_RUNTIME_NONATOMIC_FLAGS}
171
176
LINK_FLAGS ${swift_runtime_linker_flags}
172
177
SWIFT_COMPILE_FLAGS ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
173
178
INSTALL_IN_COMPONENT never_install )
Original file line number Diff line number Diff line change @@ -1278,9 +1278,6 @@ function swift_c_flags() {
1278
1278
if [[ $( is_cmake_release_build_type " ${SWIFT_BUILD_TYPE} " ) ]] ; then
1279
1279
echo -n " -fno-stack-protector"
1280
1280
fi
1281
- if [[ " $( true_false " ${SWIFT_STDLIB_USE_NONATOMIC_RC} " ) " == " TRUE" ]]; then
1282
- echo -n " -DSWIFT_STDLIB_USE_NONATOMIC_RC"
1283
- fi
1284
1281
}
1285
1282
1286
1283
function cmake_config_opt() {
You can’t perform that action at this time.
0 commit comments