Fixed a compiler warning when building a 32-bit Matlab extension with MSVC

This commit is contained in:
Ray Speth 2012-05-24 16:29:46 +00:00
parent 5af70f3db8
commit 7cc9a15c33

View file

@ -20,7 +20,8 @@ if localenv['OS'] == 'Windows':
if localenv['CC'] == 'cl':
linkflags.append('/export:mexFunction')
linkflags.append('/MACHINE:X%i' % localenv['OS_BITS'])
machtype = 'X64' if localenv['OS_BITS'] == 64 else 'X86'
linkflags.append('/MACHINE:' + machtype)
elif localenv['CC'] == 'gcc':
linkflags.append('-Wl,--export-all-symbols')
linkflags.extend(['-static-libgcc', '-static-libstdc++'])