aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-08-30 17:01:14 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-08-30 17:01:14 -0400
commit021155db5b3cdbe524806ed549d96bb56e611a01 (patch)
tree5ba048db1f9220789b5f0cd06ed3e804a38395f2 /src/codegen.cpp
parent41da9fdb69065082f57c604b12eb02ca166cb18d (diff)
downloadzig-021155db5b3cdbe524806ed549d96bb56e611a01.tar.gz
zig-021155db5b3cdbe524806ed549d96bb56e611a01.zip
successfully cross-building behavior tests for windows
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index a57e33b51f..ef8169b789 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -4914,6 +4914,12 @@ static void define_builtin_compile_vars(CodeGen *g) {
static void init(CodeGen *g) {
if (g->module)
return;
+
+ if (g->is_test_build) {
+ g->windows_subsystem_windows = false;
+ g->windows_subsystem_console = true;
+ }
+
assert(g->root_out_name);
g->module = LLVMModuleCreateWithName(buf_ptr(g->root_out_name));