Fix build.

This commit is contained in:
David Anderson 2014-07-24 10:40:51 -04:00
parent da71cfed5a
commit 2553d02698

View File

@ -3,6 +3,10 @@ import os
# Build the packing binary garbage. # Build the packing binary garbage.
scpack = SM.Program(builder, 'scpack') scpack = SM.Program(builder, 'scpack')
if scpack.compiler.cc.behavior == 'msvc':
scpack.compiler.linkflags.remove('/SUBSYSTEM:WINDOWS')
scpack.compiler.linkflags.append('/SUBSYSTEM:CONSOLE')
scpack.compiler.cxxflags.remove('/TP')
scpack.sources = ['scpack.c'] scpack.sources = ['scpack.c']
scpack = builder.Add(scpack) scpack = builder.Add(scpack)