[PATCH] D7164: Recognize "CC" and "clang-CC" as C++ compiler aliases on FreeBSD
Dimitry Andric via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 30 05:26:44 PST 2015
dim updated this revision to Diff 43784.
dim added a comment.
Updating this diff for the moving of FindDriverSuffix() to lib/Driver/ToolChain.cpp.
http://reviews.llvm.org/D7164
Files:
lib/Driver/ToolChain.cpp
Index: lib/Driver/ToolChain.cpp
===================================================================
--- lib/Driver/ToolChain.cpp
+++ lib/Driver/ToolChain.cpp
@@ -105,11 +105,17 @@
{"clang", nullptr},
{"clang++", "--driver-mode=g++"},
{"clang-c++", "--driver-mode=g++"},
+#ifdef __FreeBSD__
+ {"clang-CC", "--driver-mode=g++"},
+#endif
{"clang-cc", nullptr},
{"clang-cpp", "--driver-mode=cpp"},
{"clang-g++", "--driver-mode=g++"},
{"clang-gcc", nullptr},
{"clang-cl", "--driver-mode=cl"},
+#ifdef __FreeBSD__
+ {"CC", "--driver-mode=g++"},
+#endif
{"cc", nullptr},
{"cpp", "--driver-mode=cpp"},
{"cl", "--driver-mode=cl"},
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7164.43784.patch
Type: text/x-patch
Size: 709 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151230/29bb3aa6/attachment.bin>
More information about the cfe-commits
mailing list