Skip to content
Snippets Groups Projects
Commit 491f6319 authored by Andrew Osmond's avatar Andrew Osmond
Browse files

Bug 1370209 - Allow setting --disable-rust-debug when --enable-debug is used. r=froydnj

parent b6817f5d
No related branches found
No related tags found
No related merge requests found
......@@ -115,15 +115,14 @@ js_option('--enable-debug',
add_old_configure_assignment('MOZ_DEBUG',
depends('--enable-debug')(lambda v: bool(v)))
imply_option('--enable-rust-debug',
depends('--enable-debug')(lambda v: bool(v) or None))
js_option('--enable-rust-debug',
help='Build Rust code with debug assertions turned on.')
@depends('--enable-rust-debug')
def debug_rust(debug):
if debug:
@depends('--enable-rust-debug', '--enable-debug')
def debug_rust(value, debug):
if value.origin == 'default':
return bool(debug) or None
elif bool(value):
return True
set_config('MOZ_DEBUG_RUST', debug_rust)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment