[gnome-builder/gnome-builder-3-24] meson: include -std from GCC/Clang options
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-24] meson: include -std from GCC/Clang options
- Date: Tue, 9 May 2017 08:02:07 +0000 (UTC)
commit 42ff4785618de2e16899dd61c4b85ac320134395
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 8a99793..902f580 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]