Skip to content

Commit ba7fb12

Browse files
authored
Merge c2dc898 into e44c771
2 parents e44c771 + c2dc898 commit ba7fb12

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ RELEASE 3.0.4 - Mon, 20 Jan 2019 22:49:27 +0000
3030
Issues #3268 & Issue #3222
3131
- Initial support for ARM targets with Visual Studio 2017 - Issue #3182 (You must set TARGET_ARCH for this to work)
3232
- Update TempFileMunge class to use PRINT_CMD_LINE_FUNC
33+
- Update link tool to convert target to node before accessing node member
34+
- Update mingw tool to remove MSVC like nologo CCFLAG
3335

3436
From Tobias Herzog
3537
- Enhance cpp scanner regex logic to detect if/elif expressions without whitespaces but

src/engine/SCons/Tool/link.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ def _lib_emitter(target, source, env, **kw):
8181
if Verbose:
8282
print("_lib_emitter: target[0]={!r}".format(target[0].get_path()))
8383
for tgt in target:
84+
if SCons.Util.is_String(tgt):
85+
tgt = env.File(tgt)
8486
tgt.attributes.shared = 1
8587

8688
try:

src/engine/SCons/Tool/mingw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ def generate(env):
150150

151151
#... but a few things differ:
152152
env['CC'] = 'gcc'
153+
env['CCFLAGS'] = SCons.Util.CLVar('')
153154
env['SHCCFLAGS'] = SCons.Util.CLVar('$CCFLAGS')
154155
env['CXX'] = 'g++'
155156
env['SHCXXFLAGS'] = SCons.Util.CLVar('$CXXFLAGS')
@@ -167,7 +168,6 @@ def generate(env):
167168

168169
env['SHOBJSUFFIX'] = '.o'
169170
env['STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME'] = 1
170-
171171
env['RC'] = 'windres'
172172
env['RCFLAGS'] = SCons.Util.CLVar('')
173173
env['RCINCFLAGS'] = '$( ${_concat(RCINCPREFIX, CPPPATH, RCINCSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)'

0 commit comments

Comments
 (0)