swift: no explicit linker (#6429)

ld.gold is default and works better than ld
This commit is contained in:
Catena cyber 2021-09-14 07:41:39 +02:00 committed by GitHub
parent 3b1124b6ea
commit 980fbdd35a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@
cp /usr/local/bin/llvm-symbolizer-swift $OUT/llvm-symbolizer cp /usr/local/bin/llvm-symbolizer-swift $OUT/llvm-symbolizer
export SWIFTFLAGS="-Xswiftc -parse-as-library -Xswiftc -static-stdlib -Xswiftc -use-ld=/usr/bin/ld --static-swift-stdlib" export SWIFTFLAGS="-Xswiftc -parse-as-library -Xswiftc -static-stdlib --static-swift-stdlib"
if [ "$SANITIZER" = "coverage" ] if [ "$SANITIZER" = "coverage" ]
then then
export SWIFTFLAGS="$SWIFTFLAGS -Xswiftc -profile-generate -Xswiftc -profile-coverage-mapping -Xswiftc -sanitize=fuzzer" export SWIFTFLAGS="$SWIFTFLAGS -Xswiftc -profile-generate -Xswiftc -profile-coverage-mapping -Xswiftc -sanitize=fuzzer"