Skip to content

Commit 56249cc

Browse files
committed
Enable "Macros" feature in stdlib/Observation for older compilers
1 parent 7cc5cb9 commit 56249cc

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

stdlib/public/Observation/Sources/Observation/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ add_swift_target_library(swiftObservation ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS
2727

2828
SWIFT_COMPILE_FLAGS
2929
${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
30+
"-enable-experimental-feature" "Macros"
3031

3132
C_COMPILE_FLAGS
3233
${swift_runtime_library_compile_flags}

stdlib/public/core/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ endif()
289289
# STAGING: Temporarily avoids having to write #fileID in Swift.swiftinterface.
290290
list(APPEND swift_stdlib_compile_flags "-Xfrontend" "-enable-experimental-concise-pound-file")
291291

292+
list(APPEND swift_stdlib_compile_flags "-enable-experimental-feature" "Macros")
293+
292294
if(SWIFT_CHECK_ESSENTIAL_STDLIB)
293295
add_swift_target_library(swift_stdlib_essential ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB IS_STDLIB_CORE
294296
INSTALL_IN_COMPONENT never_install

0 commit comments

Comments
 (0)