change wasm obj ext to .wasm

This commit is contained in:
Shritesh Bhattarai 2019-05-15 19:25:29 -05:00 committed by Andrew Kelley
parent 14cdb01f35
commit b64e6cb813

View File

@ -947,6 +947,8 @@ bool target_allows_addr_zero(const ZigTarget *target) {
const char *target_o_file_ext(const ZigTarget *target) {
if (target->abi == ZigLLVM_MSVC || target->os == OsWindows || target->os == OsUefi) {
return ".obj";
} else if (target_is_wasm(target)) {
return ".wasm";
} else {
return ".o";
}