Clang toolchain type should not be bound with LLD

Bingwu Zhang xtex at envs.net
Wed Jan 22 09:54:41 UTC 2025


Hi!

The patch I mentioned in last message will first try to resolve the full, 
absolute path of lld, and use --ld-path to pass the path to Clang. It should 
have the same effect as passing -fuse-ld=lld. If it failed to do so, it will 
fallback to use -fuse-ld=lld to let Clang pick up the proper linker.

btw it seems that CC and CXX is picked by the build system [1]. Why don't we 
just pick up the variable?

I will later change it to use a configure option. How about --with-linker-path?

Thanks! :)

[1] https://github.com/magicus/jdk/blob/
a62a870150cf199f16277b478af2f5d937255b3c/make/autoconf/toolchain.m4#L430

-- 
Bingwu Zhang
xtex @ Wed, 22 Jan 2025 09:45:35 +0000





More information about the build-dev mailing list