Fixed a compiler warning when building a 32-bit Matlab extension with MSVC
This commit is contained in:
parent
5af70f3db8
commit
7cc9a15c33
1 changed files with 2 additions and 1 deletions
|
|
@ -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++'])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue