Skip to content

Commit db932d1

Browse files
committed
[CMake] Force bootstrapping to host tools if the new parser is enabled
We cannot mix building the Swift libs with a host and new compiler. If the new parser is enabled, force to host tools. Resolves rdar://116686158.
1 parent 9071c82 commit db932d1

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,13 @@ if(SWIFT_BUILD_SWIFT_SYNTAX)
872872
message(WARNING "Force setting BOOTSTRAPPING=HOSTTOOLS because Swift parser integration is enabled")
873873
set(BOOTSTRAPPING_MODE "HOSTTOOLS")
874874
endif()
875+
876+
# We cannot mix the parser using host tools and SwiftCompilerSources uses bootstrapping
877+
if(BOOTSTRAPPING_MODE MATCHES "BOOTSTRAPPING.*")
878+
message(WARNING "Force setting BOOTSTRAPPING=HOSTTOOLS because Swift parser integration is enabled")
879+
set(BOOTSTRAPPING_MODE "HOSTTOOLS")
880+
endif()
881+
875882
add_definitions(-DSWIFT_BUILD_SWIFT_SYNTAX)
876883
endif()
877884

test/ASTGen/decls.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
// -enable-experimental-feature requires an asserts build
1818
// REQUIRES: asserts
19-
// rdar://116686158
20-
// UNSUPPORTED: asan
2119

2220
// NB: Ridiculous formatting to test that we do not include leading trivia in locations.
2321

test/ASTGen/types.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
// -enable-experimental-feature requires an asserts build
44
// REQUIRES: asserts
5-
// rdar://116686158
6-
// UNSUPPORTED: asan
75

86
protocol P { }
97
protocol Q { }

0 commit comments

Comments
 (0)