[gnome-builder] compile-commands: pass on a few more CC parameters



commit 9827a8bb4a1d19fb342bef9fe3d46ce868ab8006
Author: Christian Hergert <chergert redhat com>
Date:   Mon Nov 20 16:30:46 2017 -0800

    compile-commands: pass on a few more CC parameters
    
    These are a few other parameters that might be useful to the target
    compiler providing diagnostics.

 src/libide/buildsystem/ide-compile-commands.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libide/buildsystem/ide-compile-commands.c b/src/libide/buildsystem/ide-compile-commands.c
index 78ecbe0..105da8a 100644
--- a/src/libide/buildsystem/ide-compile-commands.c
+++ b/src/libide/buildsystem/ide-compile-commands.c
@@ -485,6 +485,8 @@ ide_compile_commands_filter_c (IdeCompileCommands   *self,
         case 'f': /* -fPIC */
         case 'W': /* -Werror... */
         case 'm': /* -m64 -mtune=native */
+        case 'M': /* -MMD -MQ */
+        case 'O': /* -O2 */
           g_ptr_array_add (ar, g_strdup (param));
           break;
 
@@ -497,6 +499,7 @@ ide_compile_commands_filter_c (IdeCompileCommands   *self,
 
         default:
           if (g_str_has_prefix (param, "-std=") ||
+              ide_str_equal0 (param, "-pthread") ||
               g_str_has_prefix (param, "-isystem"))
             {
               g_ptr_array_add (ar, g_strdup (param));


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