fix bug #2497148 - allow out of tree builds on POSIX platforms
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5921 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
a1671db5d6
commit
f41ba95bab
12 changed files with 57 additions and 20 deletions
|
@ -81,6 +81,8 @@ conf.Finish()
|
|||
|
||||
stub_env = defenv.Clone()
|
||||
|
||||
stub_env.Append(CPPPATH = ['#$BUILD_CONFIG'])
|
||||
|
||||
if not defenv['DEBUG']:
|
||||
stub_env.Append(CCFLAGS = ['/O1']) # optimize for size
|
||||
stub_env.Append(CCFLAGS = ['/W3']) # level 3 warnings
|
||||
|
@ -96,6 +98,8 @@ stub_env.Append(CCFLAGS = ['/Fa${TARGET}.lst']) # listing file name
|
|||
|
||||
makensis_env = defenv.Clone()
|
||||
|
||||
makensis_env.Append(CPPPATH = ['#$BUILD_CONFIG'])
|
||||
|
||||
if not defenv['DEBUG']:
|
||||
makensis_env.Append(CCFLAGS = ['/O2']) # optimize for speed
|
||||
makensis_env.Append(CCFLAGS = ['$EXCEPTION_FLAG']) # enable exceptions
|
||||
|
@ -130,10 +134,14 @@ util_env.Append(LINKFLAGS = ['$MAP_FLAG']) # generate map file
|
|||
|
||||
cp_util_env = util_env.Clone()
|
||||
|
||||
cp_util_env.Append(CPPPATH = ['#$BUILD_CONFIG'])
|
||||
|
||||
### test environment
|
||||
|
||||
test_env = defenv.Clone()
|
||||
|
||||
test_env.Append(CPPPATH = ['#$BUILD_CONFIG'])
|
||||
|
||||
### weird compiler requirements
|
||||
|
||||
def check_requirement(ctx, func, trigger):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue