summaryrefslogtreecommitdiffstats
path: root/SCons
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2021-06-12 19:22:42 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2021-06-12 20:50:58 (GMT)
commitccddda156a4ba8d01c21cf229cecf6b9686e4ed6 (patch)
tree5db0a8b41479bd6f84744a227d7c78fa61150c3d /SCons
parente10c954fa34f67528f0bbe6e7d91179cd83769ab (diff)
downloadSCons-ccddda156a4ba8d01c21cf229cecf6b9686e4ed6.zip
SCons-ccddda156a4ba8d01c21cf229cecf6b9686e4ed6.tar.gz
SCons-ccddda156a4ba8d01c21cf229cecf6b9686e4ed6.tar.bz2
Updated tools to use _concat's new affect_signature flag
Diffstat (limited to 'SCons')
-rw-r--r--SCons/Defaults.py2
-rw-r--r--SCons/Tool/FortranCommon.py16
-rw-r--r--SCons/Tool/mingw.py2
-rw-r--r--SCons/Tool/swig.py2
4 files changed, 11 insertions, 11 deletions
diff --git a/SCons/Defaults.py b/SCons/Defaults.py
index 7530b46..3edfe7b 100644
--- a/SCons/Defaults.py
+++ b/SCons/Defaults.py
@@ -42,9 +42,9 @@ import SCons.Builder
import SCons.CacheDir
import SCons.Environment
import SCons.PathList
+import SCons.Scanner.Dir
import SCons.Subst
import SCons.Tool
-import SCons.Scanner.Dir
# A placeholder for a default Environment (for fetching source files
# from source code management systems and the like). This must be
diff --git a/SCons/Tool/FortranCommon.py b/SCons/Tool/FortranCommon.py
index 16b75e2..a73de5d 100644
--- a/SCons/Tool/FortranCommon.py
+++ b/SCons/Tool/FortranCommon.py
@@ -1,9 +1,3 @@
-"""SCons.Tool.FortranCommon
-
-Stuff for processing Fortran, common to all fortran dialects.
-
-"""
-
# MIT License
#
# Copyright The SCons Foundation
@@ -25,7 +19,12 @@ Stuff for processing Fortran, common to all fortran dialects.
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""SCons.Tool.FortranCommon
+
+Stuff for processing Fortran, common to all fortran dialects.
+
+"""
import re
import os.path
@@ -35,6 +34,7 @@ import SCons.Scanner.Fortran
import SCons.Tool
import SCons.Util
+
def isfortran(env, source):
"""Return 1 if any of code in source has fortran files in it, 0
otherwise."""
@@ -147,7 +147,7 @@ def DialectAddToEnv(env, dialect, suffixes, ppsuffixes, support_module = 0):
if 'INC%sSUFFIX' % dialect not in env:
env['INC%sSUFFIX' % dialect] = '$INCSUFFIX'
- env['_%sINCFLAGS' % dialect] = '$( ${_concat(INC%sPREFIX, %sPATH, INC%sSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)' % (dialect, dialect, dialect)
+ env['_%sINCFLAGS' % dialect] = '${_concat(INC%sPREFIX, %sPATH, INC%sSUFFIX, __env__, RDirs, TARGET, SOURCE, affect_signature=False)}' % (dialect, dialect, dialect)
if support_module == 1:
env['%sCOM' % dialect] = '$%s -o $TARGET -c $%sFLAGS $_%sINCFLAGS $_FORTRANMODFLAG $SOURCES' % (dialect, dialect, dialect)
diff --git a/SCons/Tool/mingw.py b/SCons/Tool/mingw.py
index 2df3c3b..0d2bd6d 100644
--- a/SCons/Tool/mingw.py
+++ b/SCons/Tool/mingw.py
@@ -180,7 +180,7 @@ def generate(env):
env['STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME'] = 1
env['RC'] = 'windres'
env['RCFLAGS'] = SCons.Util.CLVar('')
- env['RCINCFLAGS'] = '$( ${_concat(RCINCPREFIX, CPPPATH, RCINCSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)'
+ env['RCINCFLAGS'] = '${_concat(RCINCPREFIX, CPPPATH, RCINCSUFFIX, __env__, RDirs, TARGET, SOURCE, affect_signature=False)}'
env['RCINCPREFIX'] = '--include-dir '
env['RCINCSUFFIX'] = ''
env['RCCOM'] = '$RC $_CPPDEFFLAGS $RCINCFLAGS ${RCINCPREFIX} ${SOURCE.dir} $RCFLAGS -i $SOURCE -o $TARGET'
diff --git a/SCons/Tool/swig.py b/SCons/Tool/swig.py
index fa9d93b..1df0ad0 100644
--- a/SCons/Tool/swig.py
+++ b/SCons/Tool/swig.py
@@ -203,7 +203,7 @@ def generate(env):
env['SWIGPATH'] = []
env['SWIGINCPREFIX'] = '-I'
env['SWIGINCSUFFIX'] = ''
- env['_SWIGINCFLAGS'] = '$( ${_concat(SWIGINCPREFIX, SWIGPATH, SWIGINCSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)'
+ env['_SWIGINCFLAGS'] = '${_concat(SWIGINCPREFIX, SWIGPATH, SWIGINCSUFFIX, __env__, RDirs, TARGET, SOURCE, affect_signature=False)}'
env['SWIGCOM'] = '$SWIG -o $TARGET ${_SWIGOUTDIR} ${_SWIGINCFLAGS} $SWIGFLAGS $SOURCES'
def exists(env):