mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
meson: use booleans for conf.set and drop unecessary conditionals
Using conf.set() with a boolean argument does the right thing: either #ifdef or #undef. This means that conf.set can be used unconditionally. Previously I used '1' as the placeholder value, and that needs to be changed to 'true' for consistency (under meson 1 cannot be used in boolean context). All checks need to be adjusted.
This commit is contained in:
@@ -4,7 +4,7 @@ install_data(
|
||||
|
||||
in_files = []
|
||||
|
||||
if conf.get('ENABLE_COREDUMP', 0) == 1
|
||||
if conf.get('ENABLE_COREDUMP', false)
|
||||
in_files += ['50-coredump.conf']
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user