]> granicus.if.org Git - clang/commitdiff
Fix cmake for r136702 (at least for the most part). Chandler has been kind
authorChad Rosier <mcrosier@apple.com>
Tue, 2 Aug 2011 20:44:34 +0000 (20:44 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 2 Aug 2011 20:44:34 +0000 (20:44 +0000)
enough to offer to investigate the underlying issue.  Thanks to Doug for his
assistance as well.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136719 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt
include/clang/Config/config.h.cmake
lib/Driver/Driver.cpp

index 3ad60eaff516c37e28f4263cb5d5aac9c75b40be..2be3c9cff25b51561362b2958d925eabedf995da 100644 (file)
@@ -272,3 +272,6 @@ if( CLANG_BUILT_STANDALONE AND MSVC_VERSION EQUAL 1600 )
     file(APPEND "${CLANG_SLN_FILENAME}" "\n# This should be regenerated!\n")
   endif()
 endif()
+
+set(BUG_REPORT_URL "http://llvm.org/bugs/" CACHE STRING
+  "Default URL where bug reports are to be submitted.")
index d70a151b2716d37908cd07686303fe122914b887..c53e5eb9e701b3ff4b1cca8182f80365de9d5d49 100644 (file)
@@ -15,3 +15,6 @@
 
 /* Directories clang will search for headers. */
 #define C_INCLUDE_DIRS "${C_INCLUDE_DIRS}"
+
+/* Define default bug reporting URL. */
+#define BUG_REPORT_URL "${BUG_REPORT_URL}"
index 9ecfb7c5ba2e0154d4d69cab6106cd61e1da6af1..fc2ec673e3fd0dc672e5153f05557555daf0dd47 100644 (file)
@@ -373,8 +373,8 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
 void Driver::generateCompilationDiagnostics(Compilation &C,
                                             const Command *FailingCommand) {
   Diag(clang::diag::note_drv_command_failed_diag_msg)
-    << "Please submit a bug report and include command line arguments and "
-    "all diagnostic information.";
+    << "Please submit a bug report to " BUG_REPORT_URL " and include command"
+    " line arguments and all diagnostic information.";
 
   // Suppress driver output and emit preprocessor output to temp file.
   CCCIsCPP = true;