From e58415f94a8a28babd4896ca42183f44648f7c0a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 24 Feb 2015 01:49:03 -0800 Subject: [PATCH] Fix shell build on Windows. --- sourcepawn/jit/AMBuilder | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sourcepawn/jit/AMBuilder b/sourcepawn/jit/AMBuilder index 7fb74fb4..1a5b2721 100644 --- a/sourcepawn/jit/AMBuilder +++ b/sourcepawn/jit/AMBuilder @@ -78,6 +78,9 @@ shell.compiler.linkflags[0:0] = [libsourcepawn] shell.sources += [ 'dll_exports.cpp' ] +if shell.compiler.cc.behavior == 'msvc': + shell.compiler.linkflags.remove('/SUBSYSTEM:WINDOWS') + shell.compiler.linkflags.append('/SUBSYSTEM:CONSOLE') if builder.target_platform == 'linux': shell.compiler.postlink += ['-lpthread', '-lrt']