[all-commits] [llvm/llvm-project] aafc3f: [Driver] Add -print-runtime-dir
zero9178 via All-commits
all-commits at lists.llvm.org
Fri Mar 19 09:48:27 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: aafc3f7be804d117a632365489a18c3e484a3931
https://github.com/llvm/llvm-project/commit/aafc3f7be804d117a632365489a18c3e484a3931
Author: Markus Böck <markus.boeck02 at gmail.com>
Date: 2021-03-19 (Fri, 19 Mar 2021)
Changed paths:
M clang/include/clang/Driver/Options.td
M clang/lib/Driver/Driver.cpp
A clang/test/Driver/Inputs/resource_dir/lib/windows/clang_rt.builtins-x86_64.lib
A clang/test/Driver/Inputs/resource_dir_with_per_target_subdir/lib/x86_64-pc-windows-msvc/clang_rt.builtins.lib
M clang/test/Driver/immediate-options.c
Log Message:
-----------
[Driver] Add -print-runtime-dir
This patch adds a new command line option to clang which outputs the directory containing clangs runtime libraries to stdout.
The primary use case for this command line flag is for build systems using clang-cl. Build systems when using clang-cl invoke the linker, that is either link or lld-link in this case, directly instead of invoking the compiler for the linking process as is common with the other drivers. This leads to issues when runtime libraries of clang, such as sanitizers or profiling, have to be linked in as the compiler cannot communicate the link directory to the linker.
Using this flag, build systems would be capable of getting the directory containing all of clang's runtime libraries and add it to the linker path.
Differential Revision: https://reviews.llvm.org/D98868
More information about the All-commits
mailing list