Hack round a maybe delightful (for some values of delightful) and certainly evil...
[ardour.git] / autowaf.py
index 4e2afb2ece1f804ff376fae27539d4b69cdc39cb..f98cad1adaaf0165861410052bbfca4b16901549 100644 (file)
@@ -40,7 +40,9 @@ def set_options(opt):
        opt.tool_options('compiler_cc')
        opt.tool_options('compiler_cxx')
        opt.add_option('--debug', action='store_true', default=True, dest='debug',
-                       help="Build debuggable binaries [Default: False]")
+                       help="Build debuggable binaries [Default: True]")
+       opt.add_option('--optimize', action='store_false', default=True, dest='debug',
+                       help="Build optimized binaries [Default: False]")
        opt.add_option('--strict', action='store_true', default=False, dest='strict',
                        help="Use strict compiler flags and show all warnings [Default: False]")
        opt.add_option('--docs', action='store_true', default=False, dest='docs',
@@ -469,6 +471,7 @@ def build_i18n(bld,srcdir,dir,name,sources):
                mo_file = po_file.replace ('.po', '.mo')
                args = [ 'msgfmt',
                         '-c',
+                        '-f',
                         '-o',
                         mo_file,
                         po_file ]