Skip to content

Commit f65240a

Browse files
committed
3.1.61.4bi
1 parent 8df6932 commit f65240a

File tree

5 files changed

+49
-0
lines changed

5 files changed

+49
-0
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

sources.wasm/9999-version.sh

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/bin/bash
2+
3+
. ${CONFIG:-config}
4+
5+
. scripts/emsdk-fetch.sh
6+
7+
ALL="-m32 \
8+
-D_FILE_OFFSET_BITS=64 \
9+
-sSUPPORT_LONGJMP=emscripten \
10+
-mno-bulk-memory \
11+
-mnontrapping-fptoint \
12+
-mno-reference-types \
13+
-mno-sign-ext \
14+
-mno-extended-const \
15+
-mno-atomics \
16+
-mno-tail-call \
17+
-mno-fp16 \
18+
-mno-multivalue \
19+
-mno-relaxed-simd \
20+
-mno-simd128 \
21+
-mno-multimemory \
22+
-mno-exception-handling"
23+
24+
pushd /tmp
25+
rm hello_em.*
26+
27+
cat > /tmp/hello_em.c <<END
28+
#include <stdio.h>
29+
#include <assert.h>
30+
#if defined(__EMSCRIPTEN__)
31+
#include "emscripten.h"
32+
#endif
33+
34+
int main(int argc, char**arv){
35+
#if defined(__EMSCRIPTEN__)
36+
printf("export EMFLAVOUR=" "%d.%d.%d\n",__EMSCRIPTEN_major__, __EMSCRIPTEN_minor__, __EMSCRIPTEN_tiny__);
37+
#else
38+
puts("native");
39+
#endif
40+
return 0;
41+
}
42+
END
43+
44+
emcc -sASSERTIONS=0 -sENVIRONMENT=node,web -o hello_em.html hello_em.c
45+
$SDKROOT/emsdk/node/*.*.*64bit/bin/node hello_em.js >> $SDKROOT/config
46+
rm hello_em.js hello_em.wasm hello_em.c
47+
popd
48+
49+

0 commit comments

Comments
 (0)