Skip to content

Commit f9f14ab

Browse files
committed
[Build] Skip early-* on non-darwin hosts
These builds do not work outside of darwin currently. Rather than adding the skip to all the necessary build presets, just disable in the product instead. (cherry picked from commit 2c42a38)
1 parent 3548b12 commit f9f14ab

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

utils/swift_build_support/swift_build_support/products/earlyswiftdriver.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ def is_before_build_script_impl_product(cls):
4242
return True
4343

4444
def should_build(self, host_target):
45+
# Temporarily disable for non-darwin since this build never works
46+
# outside of that case currently.
47+
if sys.platform != 'darwin':
48+
return False
49+
4550
if self.is_cross_compile_target(host_target):
4651
return False
4752

utils/swift_build_support/swift_build_support/products/earlyswiftsyntax.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ def is_before_build_script_impl_product(cls):
3232
return True
3333

3434
def should_build(self, host_target):
35+
# Temporarily disable for non-darwin since this build never works
36+
# outside of that case currently.
37+
if sys.platform != 'darwin':
38+
return False
39+
3540
if self.args.build_early_swiftsyntax:
3641
if toolchain.host_toolchain().find_tool("swift") is None:
3742
warn_msg = 'Host toolchain could not locate a '\

0 commit comments

Comments
 (0)