aboutsummaryrefslogtreecommitdiffhomepage
path: root/builder/lld.cpp
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2021-11-05 13:23:08 +0100
committerRon Evans <[email protected]>2021-11-16 11:08:30 +0100
commit869e917dc6959445fac6ee4d93cd10c98ab445e5 (patch)
tree451d6c4b9a07b60a58f9db5d865720bf95498904 /builder/lld.cpp
parent41bcad9c194d92ba90f6f42f680087efa4f0e998 (diff)
downloadtinygo-869e917dc6959445fac6ee4d93cd10c98ab445e5.tar.gz
tinygo-869e917dc6959445fac6ee4d93cd10c98ab445e5.zip
all: add support for windows/amd64
This uses Mingw-w64, which seems to be the de facto standard for porting Unixy programs to Windows.
Diffstat (limited to 'builder/lld.cpp')
-rw-r--r--builder/lld.cpp5
1 files changed, 5 insertions, 0 deletions
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<const char*> args(argv, argv + argc);
+ return lld::mingw::link(args, false, llvm::outs(), llvm::errs());
+}
+
bool tinygo_link_wasm(int argc, char **argv) {
std::vector<const char*> args(argv, argv + argc);
return lld::wasm::link(args, false, llvm::outs(), llvm::errs());