added a workaround to BuildUtil to avoid the suffix problems that appeared with scons 0.96.92

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4775 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2006-10-17 16:51:14 +00:00
parent cce2dd6547
commit 9ab6953c56

View file

@ -503,6 +503,11 @@ def BuildUtil(target, source, libs, entry = None, res = None,
if file_name != '':
target = "%s/%s" % (target, file_name)
# make sure the environment suffix fits
if env['PROGSUFFIX'] not in target:
if '.' in target:
env['PROGSUFFIX'] = target[target.rindex('.'):]
util = env.Program(target, source, LIBS = libs)
defenv.Alias(target, util)
defenv.Alias('utils', util)