Skip to content

Commit 4a2696b

Browse files
[RISCV] Move fuse-ld flag to CMAKE_EXE_LINKER_FLAGS_INIT (#220)
The build bot fails with the current message: clang-15: error: argument unused during compilation: '-fuse-ld=lld' because we are passing the fuse-ld flag as a compilation argument. This patch sets it to CMAKE_EXE_LINKER_FLAGS_INIT so it can be loaded by LD_FLAGS instead.
1 parent 9fc259e commit 4a2696b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

zorg/buildbot/builders/annotated/libc-linux.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ def main(argv):
101101
if riscv32_build:
102102
cmake_args.append('-DCMAKE_C_FLAGS=-mabi=ilp32d -march=rv32imafdc \
103103
--target=riscv32-unknown-linux-gnu --sysroot=/opt/riscv/sysroot \
104-
--gcc-toolchain=/opt/riscv -fuse-ld=lld-15')
104+
--gcc-toolchain=/opt/riscv')
105105
cmake_args.append('-DCMAKE_CXX_FLAGS=-mabi=ilp32d -march=rv32imafdc \
106106
--target=riscv32-unknown-linux-gnu --sysroot=/opt/riscv/sysroot \
107-
--gcc-toolchain=/opt/riscv -fuse-ld=lld')
107+
--gcc-toolchain=/opt/riscv')
108+
cmake_args.append('-DCMAKE_EXE_LINKER_FLAGS_INIT=-fuse-ld=lld')
108109
cmake_args.append('-DCMAKE_CROSSCOMPILING_EMULATOR={}/cross.sh'.format(os.getenv('HOME')))
109110
cmake_args.append('-DLIBC_TARGET_TRIPLE=riscv32-unknown-linux-gnu')
110111
cmake_args.append('-DCMAKE_SYSTEM_NAME=Linux')

0 commit comments

Comments
 (0)