[gnome-builder] gcc: allow path separators when parsing diagnostic filename



commit 41d5da8a3e9b80af4dd3c888589730e4a013ff0f
Author: Christian Hergert <chergert redhat com>
Date:   Sat Dec 31 16:15:04 2016 -0800

    gcc: allow path separators when parsing diagnostic filename
    
    Previously, we were only getting the basename portion of the filename.
    We need the relative path (so therefore path separators) so we can
    resolve include files outside the current working directory.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776587

 plugins/gcc/gbp-gcc-build-result-addin.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/gcc/gbp-gcc-build-result-addin.c b/plugins/gcc/gbp-gcc-build-result-addin.c
index 2453d8a..ae295ff 100644
--- a/plugins/gcc/gbp-gcc-build-result-addin.c
+++ b/plugins/gcc/gbp-gcc-build-result-addin.c
@@ -23,11 +23,11 @@
 #include "gbp-gcc-build-result-addin.h"
 
 
-#define ERROR_FORMAT_REGEX           \
-  "(?<filename>[a-zA-Z0-9\\-\\.]+):" \
-  "(?<line>\\d+):"                   \
-  "(?<column>\\d+): "                \
-  "(?<level>[\\w\\s]+): "            \
+#define ERROR_FORMAT_REGEX              \
+  "(?<filename>[a-zA-Z0-9\\-\\.\\/]+):" \
+  "(?<line>\\d+):"                      \
+  "(?<column>\\d+): "                   \
+  "(?<level>[\\w\\s]+): "               \
   "(?<message>.*)"
 
 struct _GbpGccBuildResultAddin


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]