[gnome-builder] meson: include -std from GCC/Clang options



commit 1b817fd48890603f2cfbc307ee783c2b5889a4ef
Author: Christian Hergert <chergert redhat com>
Date:   Tue May 9 01:00:47 2017 -0700

    meson: include -std from GCC/Clang options
    
    We need to keep parity with the autotools flags extractor, which also
    supports -std=(gnu11,c++11,etc). libclang uses this to determine which
    C and C++ features can be used.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782341

 plugins/meson/meson_plugin/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/meson/meson_plugin/__init__.py b/plugins/meson/meson_plugin/__init__.py
index fc34ac6..1b8f412 100644
--- a/plugins/meson/meson_plugin/__init__.py
+++ b/plugins/meson/meson_plugin/__init__.py
@@ -52,7 +52,7 @@ def extract_flags(command: str, builddir: str):
             # All paths are relative to build
             abspath = path.normpath(path.join(builddir, flag[2:]))
             wanted_flags.append('-I' + abspath)
-        elif flag.startswith(('-isystem', '-W', '-D')):
+        elif flag.startswith(('-isystem', '-W', '-D', '-std')):
             wanted_flags.append(flag)
     return wanted_flags
 


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