[clang] [llvm] [Driver] Merge CSKY bare-metal toolchain into BareMetal (PR #240290)

Brad Smith via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 8 23:57:15 PST 2026


https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/240290

CSKYToolChain is only used for csky targets that are not Linux;
csky-*-linux-* is already handled by the generic Linux toolchain.
Fold the bare-metal handling into the BareMetal toolchain, as was
done for RISCVToolChain, and remove CSKYToolChain.

- Route csky in the default switch to BareMetal and add csky with an
  unknown OS to BareMetal::handlesTarget().
- Use the "cskyelf" linker emulation for non-Linux csky targets.
- With a GCC installation, use libgcc/libstdc++ and no unwind library,
  do not warn about multilibs, and apply the selected multilib's OS
  suffix to the GCC install and sysroot library paths when the
  multilib set does not provide a file paths callback.
- Add sysroot/include and sysroot/sys-include, link crti.o/crtn.o and
  -lnosys (or -lsemi with -msim) instead of -lgloss.

<html><body><h1>504 Gateway Time-out</h1>
The server didn't respond in time.
</body></html>



More information about the cfe-commits mailing list