Remember to define __BIG_ENDIAN__ for the tests as well as makensis.

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4514 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
pabs3 2006-02-01 06:01:11 +00:00
parent 7a6d8b8d8b
commit e2c7cdb60a
4 changed files with 23 additions and 9 deletions

View file

@ -33,6 +33,10 @@ util_env = defenv.Copy()
cp_util_env = util_env.Copy()
### test environment
test_env = defenv.Copy()
# return
Return('stub_env makensis_env plugin_env util_env cp_util_env')
Return('stub_env makensis_env plugin_env util_env cp_util_env test_env')

View file

@ -101,6 +101,10 @@ cross_env(util_env)
util_env.Append(LINKFLAGS = '-mwindows') # build windows executables
util_env.Append(LINKFLAGS = '$ALIGN_FLAG') # 512 bytes align
### test environment
test_env = defenv.Copy()
### weird GCC requirements
#
@ -239,8 +243,9 @@ def check_big_endian(ctx):
conf = defenv.Configure(custom_tests = { 'CheckBigEndian' : check_big_endian })
if conf.CheckBigEndian():
makensis_env.Append(CPPDEFINES = ['__BIG_ENDIAN__'])
test_env.Append(CPPDEFINES = ['__BIG_ENDIAN__'])
conf.Finish()
### return
Return('stub_env makensis_env plugin_env util_env cp_util_env')
Return('stub_env makensis_env plugin_env util_env cp_util_env test_env')

View file

@ -112,6 +112,10 @@ util_env.Append(LINKFLAGS = '$MAP_FLAG') # generate map file
cp_util_env = util_env.Copy()
### test environment
test_env = defenv.Copy()
# return
Return('stub_env makensis_env plugin_env util_env cp_util_env')
Return('stub_env makensis_env plugin_env util_env cp_util_env test_env')