From 2553d02698ae30c02763901e089901e6244b8eed Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 24 Jul 2014 10:40:51 -0400 Subject: [PATCH] Fix build. --- sourcepawn/compiler/AMBuilder | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sourcepawn/compiler/AMBuilder b/sourcepawn/compiler/AMBuilder index d9dfb0a2..2752a06c 100644 --- a/sourcepawn/compiler/AMBuilder +++ b/sourcepawn/compiler/AMBuilder @@ -3,6 +3,10 @@ import os # Build the packing binary garbage. 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 = builder.Add(scpack)