alternative to https://reviews.llvm.org/D108928
https://discourse.llvm.org/t/proposal-split-built-ins-from-the-rest-of-compiler-rt/67978
To run unittests:
$ cd llvm/build; ninja UnitTests; cd - $ ./llvm/build/unittests/TargetParser/TargetParserTests \ --gtest_filter=TargetParserTest.getRTLib
Some comments on the naming here...
There's really nothing like WINDOWS_RT - the OS itself doesn't have anything corresponding to it, but it's all a toolchain specific library - I think the most correct name for it right now would be VCRUNTIME.
Also as a nitpick/personal opinion, spelling it LIB_GCC feels weird to me, I'd just spell it LIBGCC.