Fangrui Song
b2b39c5d45
[Driver] --print-search-dirs: print -B options and COMPILER_PATH
2020-07-18 21:01:41 -07:00
Sylvestre Ledru
a199a9ba40
clang -dumpversion returns 4.2.1 for legacy reason, update it
...
Summary:
It has been introduced in 2011 for gcc compat:
95a907fc0f
it is probably time to remove it to remove the confusion.
reported: https://bugs.llvm.org/show_bug.cgi?id=38836
https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1810860
Reviewers: ddunbar, rnk
Reviewed By: rnk
Subscribers: jdoerfert, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D56803
llvm-svn: 356931
2019-03-25 18:06:20 +00:00
Meador Inge
51208a38de
[Driver] Add option to print the resource directory
...
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.
Patch by Catherine Moore!
Differential Revision: https://reviews.llvm.org/D31447
llvm-svn: 299473
2017-04-04 21:46:50 +00:00
Hans Wennborg
70850d83dc
Turn Driver::CCCIsCXX and CCCIsCPP into a single Mode enum,
...
and add a new option --driver-mode= to control it explicitly.
The CCCIsCXX and CCCIsCPP flags were non-overlapping, i.e. there
are currently really three modes that Clang can run in: gcc, g++
or cpp, so it makes sense to represent them as an enum.
Having a command line flag to control it helps testing.
llvm-svn: 186605
2013-07-18 20:29:38 +00:00
Hans Wennborg
ddef2e6c82
FileCheckize test/Driver/immediate-options.c
...
llvm-svn: 186438
2013-07-16 18:27:29 +00:00
Richard Smith
e70ed8690f
PR14303: Add a NoDriverOption flag to those options which are not accepted by
...
the driver (the options defined in CC1Options.td) and exclude their help from
"clang --help".
llvm-svn: 167638
2012-11-09 22:36:44 +00:00
Daniel Dunbar
5618e98f33
Update tests to use %clang instead of 'clang', and forcibly disable use of '
...
clang ' or ' clang -cc1 ' or ' clang-cc ' in test lines (by substituting them to
garbage).
llvm-svn: 91460
2009-12-15 22:01:24 +00:00
Daniel Dunbar
34546ce43d
Remove RUN: true lines.
...
llvm-svn: 86432
2009-11-08 01:47:25 +00:00
Daniel Dunbar
8b57697954
Eliminate &&s in tests.
...
- 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious.
llvm-svn: 86430
2009-11-08 01:45:36 +00:00
Daniel Dunbar
4ddeb20743
Test a few more bits of the driver.
...
llvm-svn: 70816
2009-05-04 00:31:11 +00:00