Keep the debugging symbols when building in release mode.
This commit is contained in:
parent
c9f1d45157
commit
040766fa40
1 changed files with 5 additions and 2 deletions
|
@ -319,7 +319,7 @@ def list_features_with_args(debug, additional_args):
|
||||||
option_regex = re.compile("ENABLE_(.*):(.*)=(.*)")
|
option_regex = re.compile("ENABLE_(.*):(.*)=(.*)")
|
||||||
options = {}
|
options = {}
|
||||||
ended = True
|
ended = True
|
||||||
build_type = 'Debug' if debug else 'Release'
|
build_type = 'Debug' if debug else 'RelWithDebInfo'
|
||||||
|
|
||||||
for line in Popen(tmptarget.cmake_command(build_type, False, True, additional_args, verbose=False),
|
for line in Popen(tmptarget.cmake_command(build_type, False, True, additional_args, verbose=False),
|
||||||
cwd=tmpdir, shell=False, stdout=PIPE).stdout.readlines():
|
cwd=tmpdir, shell=False, stdout=PIPE).stdout.readlines():
|
||||||
|
@ -478,7 +478,10 @@ def main(argv=None):
|
||||||
if args.clean:
|
if args.clean:
|
||||||
target.clean()
|
target.clean()
|
||||||
else:
|
else:
|
||||||
retcode = prepare.run(target, args.debug, False, args.list_cmake_variables, args.force, additional_args)
|
build_type = 'RelWithDebInfo'
|
||||||
|
if args.debug:
|
||||||
|
build_type = 'Debug'
|
||||||
|
retcode = prepare.run(target, build_type, False, args.list_cmake_variables, args.force, additional_args)
|
||||||
if retcode != 0:
|
if retcode != 0:
|
||||||
return retcode
|
return retcode
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue