diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-08-31 11:41:58 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-08-31 11:41:58 -0400 |
| commit | eb0979189be33d6d957dad5104650cb5c532055b (patch) | |
| tree | a94044c19e0e002b89c74b89d922a653c35362f2 /src/link.cpp | |
| parent | 156a84e80ff68441fcc630b1bfbc3eb7d881b267 (diff) | |
| download | zig-eb0979189be33d6d957dad5104650cb5c532055b.tar.gz zig-eb0979189be33d6d957dad5104650cb5c532055b.zip | |
add windows to test targets
cross-compiling hello world with no libc for windows is working
Diffstat (limited to 'src/link.cpp')
| -rw-r--r-- | src/link.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
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)); } } |
