From eb0979189be33d6d957dad5104650cb5c532055b Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 31 Aug 2017 11:41:58 -0400 Subject: add windows to test targets cross-compiling hello world with no libc for windows is working --- src/target.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/target.cpp') diff --git a/src/target.cpp b/src/target.cpp index e3dad05cf6..8a58a42b59 100644 --- a/src/target.cpp +++ b/src/target.cpp @@ -555,6 +555,14 @@ const char *target_o_file_ext(ZigTarget *target) { } } +const char *target_exe_file_ext(ZigTarget *target) { + if (target->os == ZigLLVM_Win32) { + return ".exe"; + } else { + return ""; + } +} + enum FloatAbi { FloatAbiHard, FloatAbiSoft, -- cgit v1.2.3