From b6f69e80eb494dd8928a49778738f25d17b441fc Mon Sep 17 00:00:00 2001 From: Eric Miotto Date: Thu, 11 Sep 2025 04:14:55 -0700 Subject: [PATCH] Runtimes: pass `-warn-implicit-overrides` when building Supplemental In particular, add the flag to Distributed, Synchronization and StringProcessing libraries. Addresses rdar://160358006 --- Runtimes/Supplemental/Distributed/CMakeLists.txt | 1 + Runtimes/Supplemental/StringProcessing/CMakeLists.txt | 1 + Runtimes/Supplemental/Synchronization/CMakeLists.txt | 1 + 3 files changed, 3 insertions(+) diff --git a/Runtimes/Supplemental/Distributed/CMakeLists.txt b/Runtimes/Supplemental/Distributed/CMakeLists.txt index a6b7a90719dc6..0cad6701f4969 100644 --- a/Runtimes/Supplemental/Distributed/CMakeLists.txt +++ b/Runtimes/Supplemental/Distributed/CMakeLists.txt @@ -87,6 +87,7 @@ add_compile_options( "$<$:SHELL:-Xfrontend -enforce-exclusivity=unchecked>" "$<$:SHELL:-Xfrontend -target-min-inlining-version -Xfrontend min>" "$<$:SHELL:-Xfrontend -enable-lexical-lifetimes=false>" + "$<$:-warn-implicit-overrides>" "$<$,$>:-enable-library-evolution>" "$<$,$>:SHELL:-Xfrontend -prespecialize-generic-metadata>") diff --git a/Runtimes/Supplemental/StringProcessing/CMakeLists.txt b/Runtimes/Supplemental/StringProcessing/CMakeLists.txt index 4a5d6cbe9f8cb..e5558f97ec63a 100644 --- a/Runtimes/Supplemental/StringProcessing/CMakeLists.txt +++ b/Runtimes/Supplemental/StringProcessing/CMakeLists.txt @@ -54,6 +54,7 @@ add_compile_options( $<$:-nostdlibimport> "$<$:SHELL:-Xfrontend -disable-implicit-concurrency-module-import>" "$<$:SHELL:-Xfrontend -disable-implicit-string-processing-module-import>" + "$<$:-warn-implicit-overrides>" "$<$,$>:-enable-library-evolution>" "$<$,$>:SHELL:-Xfrontend -prespecialize-generic-metadata>") diff --git a/Runtimes/Supplemental/Synchronization/CMakeLists.txt b/Runtimes/Supplemental/Synchronization/CMakeLists.txt index b26d429c7bb80..d2981ac0cdd61 100644 --- a/Runtimes/Supplemental/Synchronization/CMakeLists.txt +++ b/Runtimes/Supplemental/Synchronization/CMakeLists.txt @@ -90,6 +90,7 @@ add_compile_options( "$<$:SHELL:-Xfrontend -enforce-exclusivity=unchecked>" "$<$:SHELL:-Xfrontend -target-min-inlining-version -Xfrontend min>" "$<$:SHELL:-Xfrontend -enable-lexical-lifetimes=false>" + "$<$:-warn-implicit-overrides>" "$<$,$>:-enable-library-evolution>" "$<$,$>:SHELL:-Xfrontend -prespecialize-generic-metadata>")