mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Tweak optimization for Windows MSYS builds
Too many symbols to do completely unoptimized builds on Windows, so -Og is necessary.
This commit is contained in:
parent
3f6c79b009
commit
839d9dab07
1 changed files with 6 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
from waflib.extras import autowaf as autowaf
|
from waflib.extras import autowaf as autowaf
|
||||||
from waflib import Options, Task
|
from waflib import Options, Task
|
||||||
|
import sys
|
||||||
|
import platform as PLATFORM
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
@ -384,6 +386,7 @@ def build(bld):
|
||||||
# Library
|
# Library
|
||||||
if bld.is_defined ('INTERNAL_SHARED_LIBS'):
|
if bld.is_defined ('INTERNAL_SHARED_LIBS'):
|
||||||
obj = bld.shlib(features = 'c cxx cshlib cxxshlib', source=sources)
|
obj = bld.shlib(features = 'c cxx cshlib cxxshlib', source=sources)
|
||||||
|
obj.cxxflags = []
|
||||||
# macros for this shared library
|
# macros for this shared library
|
||||||
obj.defines = [ 'LIBARDOUR_DLL_EXPORTS=1' ]
|
obj.defines = [ 'LIBARDOUR_DLL_EXPORTS=1' ]
|
||||||
else:
|
else:
|
||||||
|
|
@ -410,6 +413,9 @@ def build(bld):
|
||||||
]
|
]
|
||||||
if bld.env['build_target'] != 'mingw':
|
if bld.env['build_target'] != 'mingw':
|
||||||
obj.uselib += ['DL']
|
obj.uselib += ['DL']
|
||||||
|
elif sys.platform == "win32":
|
||||||
|
obj.cxxflags += ['-Og']
|
||||||
|
|
||||||
|
|
||||||
if bld.is_defined('USE_EXTERNAL_LIBS'):
|
if bld.is_defined('USE_EXTERNAL_LIBS'):
|
||||||
obj.uselib.extend(['VAMPSDK', 'LIBLTC', 'LIBFLUIDSYNTH'])
|
obj.uselib.extend(['VAMPSDK', 'LIBLTC', 'LIBFLUIDSYNTH'])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue