Skip to content

Commit 99d8c18

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 f741bc2 commit 99d8c18

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

utils/build-presets.ini

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -851,11 +851,6 @@ installable-package=%(installable_package)s
851851
# in Linux CI bots
852852
relocate-xdg-cache-home-under-build-subdir
853853

854-
# Temporarily disable early swift driver/syntax builds so that linux images
855-
# can use the swift release images as a base.
856-
skip-early-swift-driver
857-
skip-early-swiftsyntax
858-
859854
[preset: buildbot_linux_base]
860855
mixin-preset=
861856
mixin_linux_installation

utils/swift_build_support/swift_build_support/products/earlyswiftdriver.py

Lines changed: 6 additions & 0 deletions
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

Lines changed: 7 additions & 0 deletions
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)