Skip to content

Commit 644b700

Browse files
committed
build: remove python fallback in overlay builds
Remove the Python 2 fallback from the standalone overlay build. This is part of the migration to Python 3.
1 parent 0f86137 commit 644b700

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Diff for: cmake/modules/StandaloneOverlay.cmake

+1-7
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,7 @@ include(SwiftComponents)
116116
include(DarwinSDKs)
117117

118118
find_package(Python2 COMPONENTS Interpreter REQUIRED)
119-
find_package(Python3 COMPONENTS Interpreter)
120-
if(NOT Python3_Interpreter_FOUND)
121-
message(WARNING "Python3 not found, using python2 as a fallback")
122-
add_executable(Python3::Interpreter IMPORTED)
123-
set_target_properties(Python3::Interpreter PROPERTIES
124-
IMPORTED_LOCATION ${Python2_EXECUTABLE})
125-
endif()
119+
find_package(Python3 COMPONENTS Interpreter REQUIRED)
126120

127121
# Without this line, installing components is broken. This needs refactoring.
128122
swift_configure_components()

0 commit comments

Comments
 (0)