summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2014-07-04 16:29:42 (GMT)
committerGary Oberbrunner <garyo@oberbrunner.com>2014-07-04 16:29:42 (GMT)
commit7314d62ef5d4f072ee8ce7a55f7db0a87195e996 (patch)
tree80b4b8b25173687e5490111924db098d889f55f2
parent7091a0d742d193c65a62ec044a34da6548a82d95 (diff)
parent71e3005c91d4a7c42b96cc3a3bc95d9c4cbfa661 (diff)
downloadSCons-7314d62ef5d4f072ee8ce7a55f7db0a87195e996.zip
SCons-7314d62ef5d4f072ee8ce7a55f7db0a87195e996.tar.gz
SCons-7314d62ef5d4f072ee8ce7a55f7db0a87195e996.tar.bz2
Merged in dirkbaechle/scons (pull request #145)
-rw-r--r--src/CHANGES.txt1
-rw-r--r--src/engine/SCons/Action.py2
-rw-r--r--src/engine/SCons/ActionTests.py3
-rw-r--r--src/engine/SCons/Tool/aixc++.py6
4 files changed, 5 insertions, 7 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt
index 20c9872..dca9901 100644
--- a/src/CHANGES.txt
+++ b/src/CHANGES.txt
@@ -47,6 +47,7 @@ RELEASE 2.3.2.alpha.yyyymmdd - NEW DATE WILL BE INSERTED HERE
From Dirk Baechle:
- Update XML doc editor configuration
+ - Fix: Allow varlist to be specified as list of strings for Actions (#2754)
From Rob Managan:
- Updated the TeX builder to support use of the -synctex=1
diff --git a/src/engine/SCons/Action.py b/src/engine/SCons/Action.py
index 16866b6..1c746be 100644
--- a/src/engine/SCons/Action.py
+++ b/src/engine/SCons/Action.py
@@ -337,7 +337,7 @@ def _do_create_keywords(args, kw):
'You must either pass a string or a callback which '
'accepts (target, source, env) as parameters.')
if len(args) > 1:
- kw['varlist'] = args[1:] + kw['varlist']
+ kw['varlist'] = tuple(SCons.Util.flatten(args[1:])) + kw['varlist']
if kw.get('strfunction', _null) is not _null \
and kw.get('cmdstr', _null) is not _null:
raise SCons.Errors.UserError(
diff --git a/src/engine/SCons/ActionTests.py b/src/engine/SCons/ActionTests.py
index 809e5ce..b46347d 100644
--- a/src/engine/SCons/ActionTests.py
+++ b/src/engine/SCons/ActionTests.py
@@ -211,6 +211,9 @@ def test_varlist(pos_call, str_call, cmd, cmdstrfunc, **kw):
a = call_action((cmd, cmdstrfunc, 'a', 'b', 'c'))
assert a.varlist == ('a', 'b', 'c'), a.varlist
+ a = call_action((cmd, cmdstrfunc, ['a', 'b', 'c']))
+ assert a.varlist == ('a', 'b', 'c'), a.varlist
+
kw['varlist'] = 'foo'
a = call_action((cmd, cmdstrfunc))
assert a.varlist == ('foo',), a.varlist
diff --git a/src/engine/SCons/Tool/aixc++.py b/src/engine/SCons/Tool/aixc++.py
index c86d530..f03f763 100644
--- a/src/engine/SCons/Tool/aixc++.py
+++ b/src/engine/SCons/Tool/aixc++.py
@@ -45,12 +45,6 @@ def get_xlc(env):
xlc = env.get('CXX', 'xlC')
return SCons.Platform.aix.get_xlc(env, xlc, packages)
-def smart_cxxflags(source, target, env, for_signature):
- build_dir = env.GetBuildPath()
- if build_dir:
- return '-qtempinc=' + os.path.join(build_dir, 'tempinc')
- return ''
-
def generate(env):
"""Add Builders and construction variables for xlC / Visual Age
suite to an Environment."""