Skip to content

Commit f122423

Browse files
committed
Support: adjust the default obj format for wasm
WebAssemly uses a custom object file format. For the wasm targets, default to the `Wasm` object file format. llvm-svn: 304117
1 parent 74fc1ce commit f122423

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/lib/Support/Triple.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,11 +643,13 @@ static Triple::ObjectFormatType getDefaultFormat(const Triple &T) {
643643
case Triple::tce:
644644
case Triple::tcele:
645645
case Triple::thumbeb:
646-
case Triple::wasm32:
647-
case Triple::wasm64:
648646
case Triple::xcore:
649647
return Triple::ELF;
650648

649+
case Triple::wasm32:
650+
case Triple::wasm64:
651+
return Triple::Wasm;
652+
651653
case Triple::ppc:
652654
case Triple::ppc64:
653655
if (T.isOSDarwin())

0 commit comments

Comments
 (0)