From 3cd22c5584a700a2036b948ef96ae41bbd233bb6 Mon Sep 17 00:00:00 2001 From: dim Date: Sat, 30 May 2015 15:36:23 +0000 Subject: Drop llvm/clang patches which are no longer necessary. --- contrib/llvm/patches/patch-02-add-CC-aliases.diff | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 contrib/llvm/patches/patch-02-add-CC-aliases.diff (limited to 'contrib/llvm/patches/patch-02-add-CC-aliases.diff') diff --git a/contrib/llvm/patches/patch-02-add-CC-aliases.diff b/contrib/llvm/patches/patch-02-add-CC-aliases.diff new file mode 100644 index 0000000..884b14c --- /dev/null +++ b/contrib/llvm/patches/patch-02-add-CC-aliases.diff @@ -0,0 +1,23 @@ +This patch adds "CC" and "clang-CC" to the list of program name aliases which +invoke the C++ compiler. + +Introduced here: http://svnweb.freebsd.org/changeset/base/257109 + +Index: tools/clang/tools/driver/driver.cpp +=================================================================== +--- tools/clang/tools/driver/driver.cpp ++++ tools/clang/tools/driver/driver.cpp +@@ -213,11 +213,13 @@ static const DriverSuffix *FindDriverSuffix(String + {"clang", nullptr}, + {"clang++", "--driver-mode=g++"}, + {"clang-c++", "--driver-mode=g++"}, ++ {"clang-CC", "--driver-mode=g++"}, + {"clang-cc", nullptr}, + {"clang-cpp", "--driver-mode=cpp"}, + {"clang-g++", "--driver-mode=g++"}, + {"clang-gcc", nullptr}, + {"clang-cl", "--driver-mode=cl"}, ++ {"CC", "--driver-mode=g++"}, + {"cc", nullptr}, + {"cpp", "--driver-mode=cpp"}, + {"cl", "--driver-mode=cl"}, -- cgit v1.1