Add -link-internally support for MinGW and WebAssembly targets

This commit is contained in:
Martin Kinkelin 2018-07-07 19:33:19 +02:00
parent 631e29b761
commit 27e4ac0304
3 changed files with 11 additions and 4 deletions

View file

@ -88,6 +88,9 @@ static std::string getOutputName() {
extension = global.dll_ext;
} else if (triple.isOSWindows()) {
extension = "exe";
} else if (triple.getArch() == llvm::Triple::wasm32 ||
triple.getArch() == llvm::Triple::wasm64) {
extension = "wasm";
}
if (global.params.exefile) {