Skip to content

Commit 14226b3

Browse files
authored
Merge pull request #1484 from hamishknight/workaround-5.8
Add workaround for 5.8 host swift-driver bug
2 parents fdae36f + c856fd2 commit 14226b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Utilities/build-script-helper.py

+4
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,10 @@ def build_using_cmake(args, toolchain_bin, build_dir, targets):
420420

421421
if args.enable_asan:
422422
base_swift_flags.append('-sanitize=address')
423+
# This is currently needed to work around a swift-driver
424+
# bug when building with a 5.8 host toolchain.
425+
base_swift_flags.append('-Xclang-linker')
426+
base_swift_flags.append('-fsanitize=address')
423427

424428
# Ensure we are not sharing the module cache with concurrent builds in CI
425429
base_swift_flags.append('-module-cache-path "{}"'.format(os.path.join(build_dir, 'module-cache')))

0 commit comments

Comments
 (0)