Skip to content

Commit cc454f6

Browse files
authored
Clear up stale values for swift-darwin-supported-archs from CMake caches (#61333)
This will prevent weird build failures when a run was made with the argument set.
1 parent 51d937c commit cc454f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils/build-script

+6
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,12 @@ def apply_default_arguments(toolchain, args):
393393
if (target.platform.is_darwin and
394394
target.arch in supported_archs)
395395
]
396+
else:
397+
# Clear the value explicitly from CMakeCache.txt
398+
# to avoid picking up a stale value that can cause
399+
# build failures
400+
args.extra_cmake_options.append(
401+
'-USWIFT_DARWIN_SUPPORTED_ARCHS')
396402

397403
# Filter out any macOS stdlib deployment targets that are not supported
398404
# by the macOS SDK.

0 commit comments

Comments
 (0)