From 6b0eb0788605155e75b47e13b9da008b2a9f511e Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Wed, 18 Apr 2018 12:28:39 -0500 Subject: [PATCH] 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. --- plugins/test/meson.build | 6 +++++- plugins/upower/meson.build | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/plugins/test/meson.build b/plugins/test/meson.build index 7f07a596c..53e74f4e7 100644 --- a/plugins/test/meson.build +++ b/plugins/test/meson.build @@ -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') diff --git a/plugins/upower/meson.build b/plugins/upower/meson.build index 9d027744b..c6a704f28 100644 --- a/plugins/upower/meson.build +++ b/plugins/upower/meson.build @@ -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 : [