config-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] config.sub: (*-emscripten) Recognize


From: Keno Fischer
Subject: [PATCH] config.sub: (*-emscripten) Recognize
Date: Sun, 30 Dec 2018 17:30:10 -0500
User-agent: Mutt/1.9.4 (2018-02-28)

Emscripten (http://kripken.github.io/emscripten-site/index.html)
is a popular tool for compiling code to asm.js or web assembly to
target web browser environments. In addition to the tool chain, it
provides libc functionality as well as emulating traditional OS
services (e.g. a file system). Since Emscripten plays the role of
the OS in these setups, common triples used here are
`asmjs-unknown-emscripten` and `wasm32-unknown-emscripten`, which
autotools currently fails to recognize. Add config.sub support
for *-emscripten to allow configure scripts to recognize these
triples.

Signed-Off-By: Keno Fischer <address@hidden>
---
 ChangeLog  | 4 ++++
 config.sub | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index ab519b9..6518bd9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-12-30  Keno Fischer  <address@hidden>
+
+       * config.sub: (*-emscripten) Recognize
+
 2018-12-21  Ben Elliston  <address@hidden>
 
        Revert 2018-07-18 change:
diff --git a/config.sub b/config.sub
index a5081b8..428ffb0 100755
--- a/config.sub
+++ b/config.sub
@@ -1361,7 +1361,7 @@ case $os in
             | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
             | skyos* | haiku* | rdos* | toppers* | drops* | es* \
             | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
-            | midnightbsd* | amdhsa* | unleashed*)
+            | midnightbsd* | amdhsa* | unleashed* | emscripten*)
        # Remember, each alternative MUST END IN *, to match a version number.
                ;;
        qnx*)
-- 
2.8.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]