scons 1.1.0 support
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5767 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
26517fe8a3
commit
c8884e0988
5 changed files with 782 additions and 782 deletions
|
@ -17,7 +17,7 @@ def check_compile_flag(ctx, flag):
|
|||
ctx.Message('Checking for compiler flag %s... ' % flag)
|
||||
|
||||
old_flags = ctx.env['CCFLAGS']
|
||||
ctx.env.Append(CCFLAGS = flag)
|
||||
ctx.env.Append(CCFLAGS = [flag])
|
||||
|
||||
test = """
|
||||
int main() {
|
||||
|
@ -29,7 +29,7 @@ def check_compile_flag(ctx, flag):
|
|||
ctx.Result(result)
|
||||
|
||||
if not result:
|
||||
ctx.env.Replace(CCFLAGS = old_flags)
|
||||
ctx.env.Replace(CCFLAGS = [old_flags])
|
||||
|
||||
return result
|
||||
|
||||
|
@ -40,7 +40,7 @@ def check_link_flag(ctx, flag, run = 0, extension = '.c', code = None):
|
|||
ctx.Message('Checking for linker flag %s... ' % flag)
|
||||
|
||||
old_flags = ctx.env['LINKFLAGS']
|
||||
ctx.env.Append(LINKFLAGS = flag)
|
||||
ctx.env.Append(LINKFLAGS = [flag])
|
||||
|
||||
if code:
|
||||
test = code
|
||||
|
@ -59,7 +59,7 @@ def check_link_flag(ctx, flag, run = 0, extension = '.c', code = None):
|
|||
ctx.Result(result)
|
||||
|
||||
if not result:
|
||||
ctx.env.Replace(LINKFLAGS = old_flags)
|
||||
ctx.env.Replace(LINKFLAGS = [old_flags])
|
||||
|
||||
return result
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue