build: set up useful env vars for meson devenv
Makes Taisei load resources from the source tree, making live reload work; enables OpenGL debugging by default; works around ASan stack use after return false positives.
This commit is contained in:
parent
1ddc58b84a
commit
4c659ba195
1 changed files with 7 additions and 0 deletions
|
@ -577,6 +577,13 @@ foreach bindist_target : bindist_targets
|
|||
)
|
||||
endforeach
|
||||
|
||||
meson.add_devenv({
|
||||
'TAISEI_RES_PATH': meson.current_source_dir() / 'resources',
|
||||
'TAISEI_GL_DEBUG': '1',
|
||||
# TODO: Add support for this in libkoishi
|
||||
'ASAN_OPTIONS': 'detect_stack_use_after_return=false',
|
||||
})
|
||||
|
||||
summary({
|
||||
'System type' : systype,
|
||||
'Build type' : get_option('buildtype'),
|
||||
|
|
Loading…
Reference in a new issue