From 869e917dc6959445fac6ee4d93cd10c98ab445e5 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Fri, 5 Nov 2021 13:23:08 +0100 Subject: all: add support for windows/amd64 This uses Mingw-w64, which seems to be the de facto standard for porting Unixy programs to Windows. --- builder/lld.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'builder/lld.cpp') diff --git a/builder/lld.cpp b/builder/lld.cpp index 9231df9cf..5a9ad8a20 100644 --- a/builder/lld.cpp +++ b/builder/lld.cpp @@ -11,6 +11,11 @@ bool tinygo_link_elf(int argc, char **argv) { return lld::elf::link(args, false, llvm::outs(), llvm::errs()); } +bool tinygo_link_mingw(int argc, char **argv) { + std::vector args(argv, argv + argc); + return lld::mingw::link(args, false, llvm::outs(), llvm::errs()); +} + bool tinygo_link_wasm(int argc, char **argv) { std::vector args(argv, argv + argc); return lld::wasm::link(args, false, llvm::outs(), llvm::errs()); -- cgit v1.2.3