diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-11-04 14:50:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-11-04 14:50:43 +0200 |
commit | ed63f730882bf6061e30b41501b37ca53fef8af9 (patch) | |
tree | 29a62883825a1f3888d064b6cf9c80c7c157fec2 | |
parent | 136afdbb1232f0546a2b013fd08cfe8278722ef2 (diff) |
Add test for wasm32-unknown-emscripten target triplet
-rw-r--r-- | libbutl/target-triplet.mxx | 1 | ||||
-rw-r--r-- | tests/target-triplet/driver.cxx | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libbutl/target-triplet.mxx b/libbutl/target-triplet.mxx index 41c0cb5..414da6a 100644 --- a/libbutl/target-triplet.mxx +++ b/libbutl/target-triplet.mxx @@ -96,6 +96,7 @@ LIBBUTL_MODEXPORT namespace butl // x86_64-microsoft-win32-msvc14.0 x86_64 microsoft win32-msvc 14.0 // x86_64-pc-windows-msvc x86_64 windows-msvc // x86_64-pc-windows-msvc19.11.25547 x86_64 windows-msvc 19.11.25547 + // wasm32-unknown-emscripten wasm32 emscripten // // Similar to version splitting, for certain commonly-used targets we also // derive the "target class" which can be used as a shorthand, more diff --git a/tests/target-triplet/driver.cxx b/tests/target-triplet/driver.cxx index cc375e0..ec232e6 100644 --- a/tests/target-triplet/driver.cxx +++ b/tests/target-triplet/driver.cxx @@ -109,6 +109,10 @@ main () "aarch64-nto-qnx7.0.0", "aarch64", "", "nto-qnx", "7.0.0", "other")); + assert (test ("wasm32-emscripten", + "wasm32-emscripten", + "wasm32", "", "emscripten", "", "other")); + // Version extraction. // assert (test ("x86_64-apple-darwin14.5.0", |