This is an archive of the discontinued LLVM Phabricator instance.

Driver: Add -print-compiler-rt-file-name option.
Needs ReviewPublic

Authored by Shiz on May 26 2015, 6:22 PM.

Details

Reviewers
bogner
Summary

In analogy to -print-libgcc-file-name, this allows a caller to retrieve the full file name to the clang_rt part that contains the builtins. It depends on ToolChain::GetRuntimeLibPath(), posted at http://reviews.llvm.org/D10050.

This is particularly useful in -nostdlib situations where the caller still wants to use compiler-rt, where -rtlib=compiler_rt is ignored and there is no way to tell the compiler to link to compiler-rt. Still wanting to use the compiler runtime libraries with -nostdlib is a common wish, and even recommended in the GCC man page.

Diff Detail

Event Timeline

Shiz updated this revision to Diff 26564.May 26 2015, 6:22 PM
Shiz retitled this revision from to Driver: Add -print-compiler-rt-file-name option..
Shiz updated this object.
Shiz edited the test plan for this revision. (Show Details)
Shiz added a reviewer: bogner.
Shiz added a subscriber: Unknown Object (MLST).
EricWF added a subscriber: EricWF.Jul 20 2015, 5:11 PM

Did this work get committed? It would be helpfull for libc++.

h-s-c added a subscriber: h-s-c.Sep 2 2016, 1:16 PM