aboutsummaryrefslogtreecommitdiffhomepage
path: root/builder/lld.cpp
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2020-03-03 14:50:13 +0100
committerRon Evans <[email protected]>2020-04-09 20:23:51 +0200
commit0afd42c439323b12faeac62fd75c3ec8d7db9e6e (patch)
treed683db6807aa416096b1e94e05aecdc2ccd6aae7 /builder/lld.cpp
parent584e94ce2f55e6fe39ee68189629575b8e47591d (diff)
downloadtinygo-0afd42c439323b12faeac62fd75c3ec8d7db9e6e.tar.gz
tinygo-0afd42c439323b12faeac62fd75c3ec8d7db9e6e.zip
main: switch to LLVM 10
This commit also adds a bit of version independence, in particular for external commands. It also adds the LLVM version to the `tinygo version` command, which might help while debugging.
Diffstat (limited to 'builder/lld.cpp')
-rw-r--r--builder/lld.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/builder/lld.cpp b/builder/lld.cpp
index 2373edeec..9231df9cf 100644
--- a/builder/lld.cpp
+++ b/builder/lld.cpp
@@ -8,12 +8,12 @@ extern "C" {
bool tinygo_link_elf(int argc, char **argv) {
std::vector<const char*> args(argv, argv + argc);
- return lld::elf::link(args, false);
+ return lld::elf::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);
+ return lld::wasm::link(args, false, llvm::outs(), llvm::errs());
}
} // external "C"