forked from Hay1tsme/segatools
Add configurable debug logging #22
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Bottersnike/segatools:develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rather than a bunch of
#if 0
statements, switch debug logging to use compile time definitions. These are controlled by meson options.For development convenience, support for an ignored file
MesonLocalOptions.mk
is added, to ensure debug flags aren't accidentally committed. For example, mine currently containsAdditionally, for the truly insane,
log_all
is present to enable all logging. This is insanity and I do not know why you would want to do this. I hope you have a large scrollback.@ -14,0 +14,4 @@
# Add "-D[option]=[value]" here as necessary
MESON_OPTIONS :=
# For options that shouldn't be committed
include MesonLocalOptions.mk
What will happen if the file doesn't exist, as it is not commited by now? I would prefer to commit an empty
MesonLocalOptions.mk
file.I'll double check what happens, and if it would error I'll add a guard. committing an empty file defeats the point, as now it's easy to accidentally commit the debug options
@ -0,0 +1,65 @@
option('log_all',
For versions of meson before 1.1, this file was called
meson_options.txt
. So with the docker build script which is mainly used (I know should be changed) this won't work.Oh lmao I didn't realise the docker build was using an old af version of meson. Will amend.
Yeah it's using fedora 36 and meson Version: 0.62.2. Maybe just create the file twice lmao.
Newer versions have full support for meson_options.txt so it's just a rename job :)
All reviews resolved