Skip to content

Commit e9f451f

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 97a6f3b)
1 parent 7fb670d commit e9f451f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

utils/swift_build_support/swift_build_support/products/earlyswiftdriver.py

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# ----------------------------------------------------------------------------
1212

1313
import os
14+
import sys
1415

1516
from . import earlyswiftsyntax
1617
from . import product
@@ -42,6 +43,11 @@ def is_before_build_script_impl_product(cls):
4243
return True
4344

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

utils/swift_build_support/swift_build_support/products/earlyswiftsyntax.py

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#
1111
# ----------------------------------------------------------------------------
1212

13+
import sys
14+
1315
from . import cmake_product
1416
from .. import toolchain
1517

@@ -32,6 +34,11 @@ def is_before_build_script_impl_product(cls):
3234
return True
3335

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

0 commit comments

Comments
 (0)