Skip to content

[LTO] Force to use lld when LTO on Unix like toolchain #32236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Jun 7, 2020

Resolve CI failure on android and other hosts #31146 (comment)

Android test cases try to use gold linker -use-ld=gold but we don't support gold and other linkers except for lld for LTO now.

: 'RUN: at line 13';   /home/ubuntu/jenkins/workspace/oss-swift-RA-linux-ubuntu-16.04-android/buildbot_linux/swift-linux-x86_64/bin/swiftc -target armv7-none-linux-android -toolchain-stdlib-rpath -Xcc --sysroot=/home/ubuntu/android-ndk-r17/platforms/android-21/arch-arm -Xclang-linker --sysroot=/home/ubuntu/android-ndk-r17/platforms/android-21/arch-arm -tools-directory /home/ubuntu/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/arm-linux-androideabi/bin -L /home/ubuntu/android-ndk-r17/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a -L /home/ubuntu/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x -L /home/ubuntu/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/arm-linux-androideabi/lib  -module-cache-path '/home/ubuntu/jenkins/workspace/oss-swift-RA-linux-ubuntu-16.04-android/buildbot_linux/swift-linux-x86_64/swift-test-results/armv7-none-linux-androideabi/clang-module-cache' -use-ld=gold /home/ubuntu/jenkins/workspace/oss-swift-RA-linux-ubuntu-16.04-android/swift/test/Driver/Inputs/lto/lib.swift -static -lto=llvm -emit-library -emit-module -module-name A -working-directory /home/ubuntu/jenkins/workspace/oss-swift-RA-linux-ubuntu-16.04-android/buildbot_linux/swift-linux-x86_64/test-android-armv7/Driver/Output/link-time-opt-staticlib-thin.swift.tmp/thin-static

CC: @compnerd

At this time, we don't support gold and other linkers for LTO.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant