From ed63f730882bf6061e30b41501b37ca53fef8af9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 4 Nov 2020 14:50:43 +0200 Subject: Add test for wasm32-unknown-emscripten target triplet --- libbutl/target-triplet.mxx | 1 + tests/target-triplet/driver.cxx | 4 ++++ 2 files changed, 5 insertions(+) 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", -- cgit v1.1