summaryrefslogtreecommitdiffstats
path: root/bin/gen-iwyu-dummy-lib
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-06-22 11:09:09 +0200
committerMichael Stahl <mstahl@redhat.com>2017-06-22 13:35:45 +0200
commitd4be7601e22dba8f2bfa535fc871348c5851c062 (patch)
treee1093aa2a382148a1c4a807aa1eb9a8ab72227ca /bin/gen-iwyu-dummy-lib
parentupdate externals in bin/gen-iwyu-dummy-lib script (diff)
downloadcore-d4be7601e22dba8f2bfa535fc871348c5851c062.tar.gz
core-d4be7601e22dba8f2bfa535fc871348c5851c062.zip
iwyu: add language standard defines to flags
for some reason they are not set and cause parse warnings Change-Id: I1bbc14da8cd7f4cbde8e59934b6ace932245e2a1 Reviewed-on: https://gerrit.libreoffice.org/39093 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'bin/gen-iwyu-dummy-lib')
-rwxr-xr-xbin/gen-iwyu-dummy-lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gen-iwyu-dummy-lib b/bin/gen-iwyu-dummy-lib
index 0b56a1c867b0..c7d64817db49 100755
--- a/bin/gen-iwyu-dummy-lib
+++ b/bin/gen-iwyu-dummy-lib
@@ -47,7 +47,7 @@ mkdir -p "$iwyu_DIR"
echo '$(eval $(call gb_StaticLibrary_StaticLibrary,iwyudummy))'
# clang will "compile" headers to .gch by default
- echo '$(eval $(call gb_StaticLibrary_add_cxxflags,iwyudummy,-x c++ -Wno-unused-macros -Wno-unused-const-variable))'
+ echo '$(eval $(call gb_StaticLibrary_add_cxxflags,iwyudummy,-x c++ -D__cplusplus=201402L -D__STDC_VERSION__=201112L -Wno-unused-macros -Wno-unused-const-variable))'
echo '$(eval $(call gb_StaticLibrary_use_custom_headers,iwyudummy,officecfg/registry))'
echo '$(eval $(call gb_StaticLibrary_use_sdk_api,iwyudummy))'
echo '$(eval $(call gb_StaticLibrary_use_externals,iwyudummy,\'