Skip to content

Commit a6c0c1a

Browse files
committed
lit.cfg: enforce that swift compiler sources are enabled on Darwin and Linux platforms
This is the ensure that we don't accidentally turn of swift compiler sources on those platforms
1 parent f524109 commit a6c0c1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/lit.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,9 @@ if bootstrapping_mode is not None:
276276
config.available_features.add('bootstrapping_mode')
277277
elif bootstrapping_mode == 'BOOTSTRAPPING-WITH-HOSTLIBS':
278278
config.available_features.add('bootstrapping_with_hostlibs_mode')
279+
else:
280+
assert platform.system() != 'Darwin' and platform.system() != 'Linux', \
281+
"swift_in_compiler is required for Darwin and Linux"
279282

280283
###
281284

0 commit comments

Comments
 (0)