This is an archive of the discontinued LLVM Phabricator instance.

Allow using BareMetal toolchain with LLVM_ENABLE_PER_TARGET_RUNTIME_DIR compiler-rt
ClosedPublic

Authored by michaelplatings on Dec 12 2022, 2:24 AM.

Details

Summary

If you build compiler-rt with LLVM_ENABLE_PER_TARGET_RUNTIME_DIR then the library filename will be "libclang_rt.builtins.a" instead of "libclang_rt.builtins-<ARCH>.a"

The ToolChain::getCompilerRT method uses the "libclang_rt.builtins.a" name if it can find the file in the library directories. If it can't then it falls back to using "libclang_rt.builtins-<ARCH>.a". This change adds the library directory such that "libclang_rt.builtins.a" can be found.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptDec 12 2022, 2:24 AM
michaelplatings requested review of this revision.Dec 12 2022, 2:24 AM
This revision is now accepted and ready to land.Dec 12 2022, 7:05 AM