This patch adds the option -print-resource-dir. It simply prints the resource directory. This information will eventually be used in compiler-rt to setup COMPILER_RT_LIBRARY_INSTALL_DIR.
Details
Details
- Reviewers
beanz - Commits
- rGa91139525a2e: [Driver] Print a newline when invoking `-print-resource-dir`
rG51208a38de9e: [Driver] Add option to print the resource directory
rC299597: [Driver] Print a newline when invoking `-print-resource-dir`
rC299473: [Driver] Add option to print the resource directory
rL299597: [Driver] Print a newline when invoking `-print-resource-dir`
rL299473: [Driver] Add option to print the resource directory
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
One minor nitpick on the test case, but otherwise this looks fine to me.
test/Driver/immediate-options.c | ||
---|---|---|
19 ↗ | (On Diff #93321) | This should probably be matching + instead of *. As written this would succeed even if the output was empty. |
Comment Actions
I've now updated the patch to include your suggested revision of the test case. I don't have commit access yet, but meadori said that he would commit it for me.