Use optimization and debug flags based on build type.

pull/15/head
Jussi Pakkanen 12 years ago
parent 25984b8e65
commit 399c2104fe
  1. 5
      generators.py

@ -122,7 +122,10 @@ class Generator():
commands = []
commands += self.build.get_global_flags(compiler)
commands += target.get_extra_args(compiler.get_language())
commands += compiler.get_debug_flags()
if self.environment.options.buildtype != 'plain':
commands += compiler.get_debug_flags()
if self.environment.options.buildtype == 'optimized':
commands += compiler.get_std_opt_flags()
commands += compiler.get_std_warn_flags()
if isinstance(target, interpreter.SharedLibrary):
commands += compiler.get_pic_flags()

Loading…
Cancel
Save