fwupd/plugins/test/meson.build
Mario Limonciello 6b0eb07886 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.
2018-04-18 20:11:43 +01:00

28 lines
647 B
Meson

# 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')
install_dummy = true
endif
shared_module('fu_plugin_test',
sources : [
'fu-plugin-test.c',
],
include_directories : [
include_directories('../..'),
include_directories('../../src'),
include_directories('../../libfwupd'),
],
install : install_dummy,
install_dir: plugin_dir,
c_args : cargs,
dependencies : [
plugin_deps,
],
)