Make GCC happy and make sure Call.sx is not preprocessed by MS toolchain

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6507 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2014-06-28 19:54:51 +00:00
parent 45e4a6251b
commit 4da72aaf77
3 changed files with 12 additions and 5 deletions

View file

@ -43,6 +43,8 @@ if env['TARGET_ARCH'] != 'amd64' or msvc: # BUGBUG: Call-amd64.S is missing GAS
# "D4027 : source file 'file.sx' ignored"
# ...and then it returns 0!
# This only happens if TryCompile .S fails (ML/ML64 not in %PATH%?)
#
# BUGBUG: GCC < 4.3 does not understand .sx, only .S
conf = env.Configure()
if conf.TryCompile('END', '.S'):
files += ['Source/'+filename+'.S']