summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJorenz Paragas <j.paragas.237@gmail.com>2016-04-26 17:38:46 -0700
committerMichael Stahl <mstahl@redhat.com>2016-04-27 14:34:05 +0000
commitde4b758ff31f9e92dffb8fe3cf295a7d3c12f611 (patch)
tree1a8717e4fa764b5d8a089f478b8216baa971381b /bin
parent4ec71284708bbeb0c4eb92c49a8a3e41de137b13 (diff)
Improve the gen-iwyu-dummy-lib script a bit.
- Fix the check for --enable-compiler-plugins not being included in the resulting StaticLibrary_iwyudummy.mk file. - Disable warnings about unused const variables to reduce noise. Change-Id: If54dfd55f46631bbc526326bed5c272358fb9cf3 Reviewed-on: https://gerrit.libreoffice.org/24419 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gen-iwyu-dummy-lib8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/gen-iwyu-dummy-lib b/bin/gen-iwyu-dummy-lib
index 1d47f0403537..aa757b684f0b 100755
--- a/bin/gen-iwyu-dummy-lib
+++ b/bin/gen-iwyu-dummy-lib
@@ -37,12 +37,12 @@ echo '$(eval $(call gb_Module_add_targets,iwyudummy,StaticLibrary_iwyudummy))' >
# prevent some common configuration errors
echo 'ifneq ($(COMPILER_PLUGINS),)' > ${iwyu_LIB}
-echo ' $(call gb_Output_error,--enable-compiler-plugins does not work well with this: bailing out)' > ${iwyu_LIB}
-echo 'endif' > ${iwyu_LIB}
+echo ' $(call gb_Output_error,--enable-compiler-plugins does not work well with this: bailing out)' >> ${iwyu_LIB}
+echo 'endif' >> ${iwyu_LIB}
-echo '$(eval $(call gb_StaticLibrary_StaticLibrary,iwyudummy))' > ${iwyu_LIB}
+echo '$(eval $(call gb_StaticLibrary_StaticLibrary,iwyudummy))' >> ${iwyu_LIB}
# clang will "compile" headers to .gch by default
-echo '$(eval $(call gb_StaticLibrary_add_cxxflags,iwyudummy,-x c++ -Wno-unused-macros))' >> ${iwyu_LIB}
+echo '$(eval $(call gb_StaticLibrary_add_cxxflags,iwyudummy,-x c++ -Wno-unused-macros -Wno-unused-const-variable))' >> ${iwyu_LIB}
echo '$(eval $(call gb_StaticLibrary_use_custom_headers,iwyudummy,officecfg/registry))' >> ${iwyu_LIB}
echo '$(eval $(call gb_StaticLibrary_use_sdk_api,iwyudummy))' >> ${iwyu_LIB}
echo '$(eval $(call gb_StaticLibrary_use_externals,iwyudummy,\' >> ${iwyu_LIB}