mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +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
|
||||
from waflib.extras import autowaf as autowaf
|
||||
from waflib import Options, Task
|
||||
import sys
|
||||
import platform as PLATFORM
|
||||
import os
|
||||
import re
|
||||
|
||||
|
|
@ -384,6 +386,7 @@ def build(bld):
|
|||
# Library
|
||||
if bld.is_defined ('INTERNAL_SHARED_LIBS'):
|
||||
obj = bld.shlib(features = 'c cxx cshlib cxxshlib', source=sources)
|
||||
obj.cxxflags = []
|
||||
# macros for this shared library
|
||||
obj.defines = [ 'LIBARDOUR_DLL_EXPORTS=1' ]
|
||||
else:
|
||||
|
|
@ -410,6 +413,9 @@ def build(bld):
|
|||
]
|
||||
if bld.env['build_target'] != 'mingw':
|
||||
obj.uselib += ['DL']
|
||||
elif sys.platform == "win32":
|
||||
obj.cxxflags += ['-Og']
|
||||
|
||||
|
||||
if bld.is_defined('USE_EXTERNAL_LIBS'):
|
||||
obj.uselib.extend(['VAMPSDK', 'LIBLTC', 'LIBFLUIDSYNTH'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue