[Driver] Define BareMetal::HasNativeLLVMSupport to return true
authorFangrui Song <i@maskray.me>
Thu, 23 Feb 2023 23:06:02 +0000 (15:06 -0800)
committerFangrui Song <i@maskray.me>
Thu, 23 Feb 2023 23:06:02 +0000 (15:06 -0800)
commitab9b2fe2a5f817f3bbca0d187a99aaae23e75d6a
tree0a7c6247ae18701994f816c131ad4ce6f1ee9c6d
parentcd2652963b6b97c01329419f15c336e5560afa98
[Driver] Define BareMetal::HasNativeLLVMSupport to return true

D33259 switched the default linker to ld.lld which supports LLVM LTO.
We can support LTO compile/link in one command and drop the
`unable to pass LLVM bit-code files to linker` error.

Fix https://github.com/llvm/llvm-project/issues/52807
clang/lib/Driver/ToolChains/BareMetal.h
clang/test/Driver/native-llvm.c