mirror of https://github.com/tinygo-org/tinygo.git
wasmstm32webassemblymicrocontrollerarmavrspiwasiadafruitarduinocircuitplayground-expressgpioi2cllvmmicrobitnrf51nrf52nrf52840samd21tinygo
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
405 B
19 lines
405 B
// +build byollvm
|
|
|
|
// This file provides C wrappers for liblld.
|
|
|
|
#include <lld/Common/Driver.h>
|
|
|
|
extern "C" {
|
|
|
|
bool tinygo_link_elf(int argc, char **argv) {
|
|
std::vector<const char*> args(argv, argv + argc);
|
|
return lld::elf::link(args, false);
|
|
}
|
|
|
|
bool tinygo_link_wasm(int argc, char **argv) {
|
|
std::vector<const char*> args(argv, argv + argc);
|
|
return lld::wasm::link(args, false);
|
|
}
|
|
|
|
} // external "C"
|
|
|