adds meson option (-Dgc=true) to set U3_MEMORY_DEBUG

This commit is contained in:
Joe Bryan 2018-09-28 22:52:19 -04:00
parent 8affdf44ea
commit 9302d4708c
4 changed files with 5 additions and 6 deletions

View File

@ -10,4 +10,6 @@
#mesondefine U3_OS_ENDIAN_little
#mesondefine U3_OS_ENDIAN_big
#mesondefine U3_MEMORY_DEBUG
#endif /*CONFIG_H*/

View File

@ -2,12 +2,6 @@
**
** This file is in the public domain.
*/
/** Options.
**/
/* U3_MEMORY_DEBUG: add debugging information to heap. Breaks image.
*/
# undef U3_MEMORY_DEBUG
/** Constants.
**/
/* u3a_bits: number of bits in word-addressed pointer. 29 == 2GB.

View File

@ -264,6 +264,7 @@ incdir = include_directories('include/')
conf_data = configuration_data()
conf_data.set('URBIT_VERSION', '"0.6.0"')
conf_data.set('U3_MEMORY_DEBUG', get_option('gc'))
osdet = build_machine.system()
os_c_flags = ['-funsigned-char','-ffast-math']

2
meson_options.txt Normal file
View File

@ -0,0 +1,2 @@
option('gc', type : 'boolean', value : false,
description : 'Add debugging information to heap. Run with -g. Breaks image.')