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/link.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/link.cpp') diff --git a/src/link.cpp b/src/link.cpp index 63f06af2cc..dae68c2814 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -78,14 +78,6 @@ static Buf *build_compiler_rt(CodeGen *parent_gen) { return build_o_raw(parent_gen, "compiler_rt", full_path); } -static const char *get_exe_file_extension(CodeGen *g) { - if (g->zig_target.os == ZigLLVM_Win32) { - return ".exe"; - } else { - return ""; - } -} - static const char *get_darwin_arch_string(const ZigTarget *t) { switch (t->arch.arch) { case ZigLLVM_aarch64: @@ -835,7 +827,7 @@ void codegen_link(CodeGen *g, const char *out_file) { buf_init_from_buf(&lj.out_file, g->root_out_name); if (g->out_type == OutTypeExe) { - buf_append_str(&lj.out_file, get_exe_file_extension(g)); + buf_append_str(&lj.out_file, target_exe_file_ext(&g->zig_target)); } } -- cgit v1.2.3