Skip to content

Commit 7dfdfe0

Browse files
authored
Merge pull request #77208 from eeckstein/fix-foundation-build-script
build-script: Build core foundation tests without debug info to workaround a linker crash
2 parents 40f1556 + ed4fab8 commit 7dfdfe0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

utils/swift_build_support/swift_build_support/products/foundationtests.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ def test(self, host_target):
7878
]
7979
if self.args.verbose_build:
8080
cmd.append('--verbose')
81+
82+
# On amazon-linux2 the gold linker (version 1.14) crashes when linking
83+
# debug info. Workaround this issue by building without debug info.
84+
# rdar://137760869
85+
if host_target.startswith('linux'):
86+
cmd += ['-Xswiftc', '-gnone']
87+
8188
shell.call(cmd, env={
8289
'SWIFTCI_USE_LOCAL_DEPS': '1',
8390
'DISPATCH_INCLUDE_PATH': include_path

0 commit comments

Comments
 (0)