[PATCH] D25161: [cmake] Install 'clang-cpp' symlink

Michał Górny via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 2 00:07:58 PDT 2016

mgorny created this revision.
mgorny added reviewers: beanz, doug.gregor.
mgorny added a subscriber: cfe-commits.
Herald added a subscriber: emaste.

Install the 'clang-cpp' symlink used to spawn the preprocessor. The code handling this suffix is already included in Driver. FreeBSD is already creating such a symlink in ports, and a similar one was requested by Gentoo/FreeBSD team. The goal is to handle software that takes a C preprocessor via a variable but does not handle passing options correctly (i.e. 'clang -E' does not work).

Bug: https://bugs.gentoo.org/478810



Index: tools/driver/CMakeLists.txt
--- tools/driver/CMakeLists.txt
+++ tools/driver/CMakeLists.txt
@@ -52,7 +52,7 @@
 add_dependencies(clang clang-headers)
-  set(CLANG_LINKS_TO_CREATE clang++ clang-cl)
+  set(CLANG_LINKS_TO_CREATE clang++ clang-cl clang-cpp)
   if (WIN32)
     list(APPEND CLANG_LINKS_TO_CREATE ../msbuild-bin/cl)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25161.73214.patch
Type: text/x-patch
Size: 435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161002/88cbe473/attachment.bin>

More information about the cfe-commits mailing list