trivial: Compile upower and test plugins with -O0 (Closes: #472)

This is a workaround for what looks like a compiler bug introduced
in Debian and Ubuntu gcc-7.

After the compiler bug is sorted in Debian testing it should be
reverted.
This commit is contained in:
Mario Limonciello 2018-04-18 12:28:39 -05:00 committed by Richard Hughes
parent ed1ac2a74b
commit 6b0eb07886
2 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,8 @@
cargs = ['-DG_LOG_DOMAIN="FuPluginTest"']
# See https://github.com/hughsie/fwupd/issues/472
# for more details why this is compiled with -O0
# revert it after conclusion to
# https://bugs.launchpad.net/fwupd/+bug/D1765134
cargs = ['-DG_LOG_DOMAIN="FuPluginTest"','-O0']
install_dummy = false
if get_option('plugin_dummy')

View File

@ -1,4 +1,8 @@
cargs = ['-DG_LOG_DOMAIN="FuPluginUpower"']
# See https://github.com/hughsie/fwupd/issues/472
# for more details why this is compiled with -O0
# revert it after conclusion to
# https://bugs.launchpad.net/fwupd/+bug/1765134
cargs = ['-DG_LOG_DOMAIN="FuPluginUpower"','-O0']
shared_module('fu_plugin_upower',
sources : [