From e7181ca8902156e7075c0f9975289869b73d3d89 Mon Sep 17 00:00:00 2001 From: Eric Miotto Date: Thu, 11 Sep 2025 01:40:37 -0700 Subject: [PATCH] Runtimes: match compilation flags for Observation used in the current... build system Currently in the new swiftinterfaces we are missing a lot of them, matching instead some meant for Synchronization. Addresses rdar://160353441 --- .../Supplemental/Observation/CMakeLists.txt | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/Runtimes/Supplemental/Observation/CMakeLists.txt b/Runtimes/Supplemental/Observation/CMakeLists.txt index 762a41089764d..5ed03bf121a18 100644 --- a/Runtimes/Supplemental/Observation/CMakeLists.txt +++ b/Runtimes/Supplemental/Observation/CMakeLists.txt @@ -67,11 +67,22 @@ option(${PROJECT_NAME}_ENABLE_PRESPECIALIZATION "Enable generic metadata prespec add_compile_options( $<$:-explicit-module-build> $<$:-nostdlibimport> - $<$:-enable-builtin-module> - $<$:-strict-memory-safety> - "$<$:SHELL:-enable-experimental-feature RawLayout>" - "$<$:SHELL:-enable-experimental-feature StaticExclusiveOnly>" - "$<$:SHELL:-enable-experimental-feature Extern>" + "$<$:SHELL:-Xfrontend -enforce-exclusivity=unchecked>" + "$<$:SHELL:-Xfrontend -target-min-inlining-version -Xfrontend min>" + "$<$:SHELL:-Xfrontend -disable-implicit-string-processing-module-import>" + "$<$:SHELL:-enable-experimental-feature NoncopyableGenerics2>" + "$<$:SHELL:-enable-experimental-feature SuppressedAssociatedTypes>" + "$<$:SHELL:-enable-experimental-feature SE427NoInferenceOnExtension>" + "$<$:SHELL:-enable-experimental-feature NonescapableTypes>" + "$<$:SHELL:-enable-experimental-feature LifetimeDependence>" + "$<$:SHELL:-enable-experimental-feature InoutLifetimeDependence>" + "$<$:SHELL:-enable-experimental-feature LifetimeDependenceMutableAccessors>" + "$<$:SHELL:-enable-upcoming-feature MemberImportVisibility>" + "$<$:SHELL:-enable-experimental-feature Macros>" + "$<$:SHELL:-enable-experimental-feature ExtensionMacros>" + "$<$:SHELL:-Xfrontend -enable-lexical-lifetimes=false>" + "$<$:SHELL:-Xfrontend -enable-ossa-modules>" + "$<$:-warn-implicit-overrides>" "$<$,$>:-enable-library-evolution>" "$<$,$>:SHELL:-Xfrontend -prespecialize-generic-metadata>")