File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33* .diff
44
55# autogenerated during the build
6- src /passes /WasmIntrinsics.cpp
6+ / src /passes /WasmIntrinsics.cpp
77
8- # files generated by build-js.sh
9- WebIDLGrammar.pkl
10- glue.cpp
11- glue.js
12- parser.out
13- shared.bc
8+ # File generated by build-js.sh
9+ /out /
1410
1511# autogenerated files by check.py
1612a. *
@@ -28,39 +24,28 @@ test/validator/*.wasm
2824* .map
2925
3026# files related to building in-tree
31- CMakeFiles /
32- CMakeCache.txt
33- Makefile
34- cmake_install.cmake
35- * .ninja
36- .ninja_deps
37- .ninja_log
38- bin /wasm-shell
39- bin /wasm-opt
40- bin /asm2wasm
41- bin /wasm2asm
42- bin /wasm-as
43- bin /wasm-dis
44- bin /wasm-ctor-eval
45- bin /wasm-emscripten-finalize
46- bin /wasm-merge
47- bin /wasm-metadce
48- bin /wasm-reduce
49- bin /wasm2js
50- lib /
27+ /CMakeFiles /
28+ /CMakeCache.txt
29+ /Makefile
30+ /cmake_install.cmake
31+ /* .ninja
32+ /.ninja_deps
33+ /.ninja_log
34+ /bin /
35+ /lib /
5136
52- # files related to windows build
53- .vs /
54- * .vcxproj *
55- * .dir /
56- * .sln
57- * .sdf
58- * .VC.opendb
59- Win32 /
37+ # files related to bulding in-tree on windows
38+ / .vs /
39+ / * .vcxproj *
40+ / * .dir /
41+ / * .sln
42+ / * .sdf
43+ / * .VC.opendb
44+ / Win32 /
6045
6146# macOS
6247.DS_Store
6348
6449# files related to VS Code
65- .history
66- .vscode
50+ / .history
51+ / .vscode
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ INSTALL(FILES src/binaryen-c.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
179179
180180# if binaryen.js was built (using "./build-js.sh", currently
181181# optional), install it
182- IF (EXISTS "${PROJECT_SOURCE_DIR} /bin /binaryen.js" )
182+ IF (EXISTS "${PROJECT_SOURCE_DIR} /out /binaryen.js" )
183183 INSTALL (FILES bin/binaryen.js DESTINATION ${CMAKE_INSTALL_DATADIR} /${PROJECT_NAME} )
184184ENDIF ()
185185
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -69,14 +69,15 @@ BINARYEN_SRC="$(dirname $0)/src"
6969BINARYEN_SCRIPTS=" $( dirname $0 ) /scripts"
7070
7171# output binaries relative to current working directory
72- BINARYEN_BIN =" $PWD /bin "
72+ OUT =" $PWD /out "
7373
7474echo " generate embedded intrinsics module"
7575
7676python $BINARYEN_SCRIPTS /embedwast.py $BINARYEN_SRC /passes/wasm-intrinsics.wast $BINARYEN_SRC /passes/WasmIntrinsics.cpp
7777
7878echo " building shared bitcode"
7979
80+ mkdir -p ${OUT}
8081" $EMSCRIPTEN /em++" \
8182 $EMCC_ARGS \
8283 $BINARYEN_SRC /asmjs/asm_v_wasm.cpp \
@@ -168,7 +169,7 @@ echo "building shared bitcode"
168169 $BINARYEN_SRC /wasm/wasm-validator.cpp \
169170 $BINARYEN_SRC /wasm/wasm.cpp \
170171 -I$BINARYEN_SRC \
171- -o shared.bc
172+ -o ${OUT} / shared.bc
172173
173174echo " building binaryen.js"
174175
@@ -826,10 +827,10 @@ export_function "_BinaryenSetAPITracing"
826827" $EMSCRIPTEN /em++" \
827828 $EMCC_ARGS \
828829 $BINARYEN_SRC /binaryen-c.cpp \
829- shared.bc \
830+ $OUT / shared.bc \
830831 -I$BINARYEN_SRC / \
831832 -s EXPORTED_FUNCTIONS=[${EXPORTED_FUNCTIONS} ] \
832- -o $BINARYEN_BIN /binaryen${OUT_FILE_SUFFIX} .js \
833+ -o $OUT /binaryen${OUT_FILE_SUFFIX} .js \
833834 -s MODULARIZE_INSTANCE=1 \
834835 -s ' EXPORT_NAME="Binaryen"' \
835836 --post-js $BINARYEN_SRC /js/binaryen.js-post.js
Original file line number Diff line number Diff line change @@ -106,11 +106,10 @@ def warn(text):
106106 else :
107107 options .binaryen_bin = 'bin'
108108
109- # ensure BINARYEN_ROOT is set up
110- os .environ ['BINARYEN_ROOT' ] = os .path .dirname (os .path .abspath (
111- options .binaryen_bin ))
109+ options .binaryen_bin = os .path .normpath (os .path .abspath (options .binaryen_bin ))
112110
113- options .binaryen_bin = os .path .normpath (options .binaryen_bin )
111+ # ensure BINARYEN_ROOT is set up
112+ os .environ ['BINARYEN_ROOT' ] = os .path .dirname (options .binaryen_bin )
114113
115114wasm_dis_filenames = ['wasm-dis' , 'wasm-dis.exe' ]
116115if not any (os .path .isfile (os .path .join (options .binaryen_bin , f ))
@@ -173,7 +172,7 @@ def is_exe(fpath):
173172WASM_METADCE = [os .path .join (options .binaryen_bin , 'wasm-metadce' )]
174173WASM_EMSCRIPTEN_FINALIZE = [os .path .join (options .binaryen_bin ,
175174 'wasm-emscripten-finalize' )]
176- BINARYEN_JS = os .path .join (options .binaryen_bin , 'binaryen.js' )
175+ BINARYEN_JS = os .path .join (options .binaryen_root , 'out' , 'binaryen.js' )
177176
178177
179178def wrap_with_valgrind (cmd ):
Original file line number Diff line number Diff line change 11set -e
2- echo " travis-test pre-test"
3- python -c " import check ; check.run_binaryen_js_tests()"
42echo " travis-test build"
5- ls -al bin/
63./build-js.sh -g
7- ls -al bin/
8- echo " travis-test post-test"
4+ echo " travis-test test"
95python -c " import check ; check.run_binaryen_js_tests()"
106echo " travis-test yay!"
11-
You can’t perform that action at this time.
0 commit comments