Skip to content

Commit a0c9a06

Browse files
author
Julian Lettner
committed
[build] For CI, make it a hard error if libdispatch is not available
When the `SWIFT_CI` variable is present in the environment, then we want to enforce that the libdispatch library is available. This should prevent us from regressing. Note: we also need to double-check that Swift builders set this environment variable.
1 parent 58002a7 commit a0c9a06

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/lit.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,10 @@ elif (run_os in ['linux-gnu', 'linux-gnueabihf', 'freebsd', 'windows-cygnus', 'w
10321032
libdispatch_source_dir = make_path(config.swift_src_root, os.pardir, 'swift-corelibs-libdispatch')
10331033
config.import_libdispatch = ('-I %s -I %s -L %s'
10341034
% (libdispatch_source_dir, libdispatch_swift_module_dir, libdispatch_artifact_dir))
1035+
elif 'SWIFT_CI' in os.environ:
1036+
print("ERROR: could not find libdispatch build artifacts")
1037+
print(libdispatch_artifacts)
1038+
sys.exit(1)
10351039

10361040
config.target_build_swift = (
10371041
'%s -target %s -toolchain-stdlib-rpath %s %s %s %s %s'

0 commit comments

Comments
 (0)