diff options
author | Zoltan Varga <vargaz@gmail.com> | 2019-11-05 01:46:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-05 01:46:52 +0300 |
commit | ebb4598096389468ec41b14947c46e795ddaef7d (patch) | |
tree | 237382d29647b41e9295ff8fa359e4f0875396fc /sdks | |
parent | b3b9960ed13a2f8e199bf4c32f9de92e9abf2f4b (diff) |
[wasm] Build the tests with --no-native-strip. (#17698)
Diffstat (limited to 'sdks')
-rw-r--r-- | sdks/wasm/Makefile | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/sdks/wasm/Makefile b/sdks/wasm/Makefile index e34e4d2c801..38751d8c6b3 100644 --- a/sdks/wasm/Makefile +++ b/sdks/wasm/Makefile @@ -26,6 +26,8 @@ CSC_FLAGS := /debug:portable /noconfig /nostdlib /nologo /langversion:latest API_REFS=$(TOP)/external/binary-reference-assemblies/v4.6 MONO_SUPPORT=$(WASM_RUNTIME_DIR)/include/support +PACKAGER=mono --debug packager.exe --no-native-strip + ifeq ($(HOST_PLATFORM),win32) DOTNET_CMD := $(shell powershell -ExecutionPolicy Bypass -Command "./init-tools.ps1")/dotnet.exe DOTNET_CMD := "$(subst \,/,$(DOTNET))" @@ -216,7 +218,7 @@ samples/hello/bin/Debug/netcoreapp3.0/hello.dll: netcore build samples/hello -f netcoreapp3.0 build-hello-netcore: packager.exe samples/hello/bin/Debug/netcoreapp3.0/hello.dll - mono --debug packager.exe --debugrt --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/hello-netcore --nobinding --builddir=obj/hello-netcore --framework=netcoreapp3.0 --netcore-sdkdir=$(NETCOREAPP_DIR) --template=runtime-tests.js --linker samples/hello/bin/Debug/netcoreapp3.0/hello.dll + $(PACKAGER) --debugrt --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/hello-netcore --nobinding --builddir=obj/hello-netcore --framework=netcoreapp3.0 --netcore-sdkdir=$(NETCOREAPP_DIR) --template=runtime-tests.js --linker samples/hello/bin/Debug/netcoreapp3.0/hello.dll ninja -v -C obj/hello-netcore bin/hello-netcore/bin/mono.js: build-hello-netcore @@ -269,17 +271,17 @@ Mono.Cecil.dll: $(TOP)/mcs/class/lib/wasm_tools/Mono.Cecil.dll cp $< $@ # Should use .csproj file and msbuild -packager.exe: packager.cs Mono.Cecil.dll $(OPTIONS_CS) | build-native +$(PACKAGER): packager.cs Mono.Cecil.dll $(OPTIONS_CS) | build-native $(CSC) $(CSC_FLAGS) /out:$@ /r:Mono.Cecil.dll packager.cs $(OPTIONS_CS) /r:$(API_REFS)/mscorlib.dll /r:$(API_REFS)/System.dll /r:$(API_REFS)/System.Core.dll .stamp-build-debug-sample: packager.exe $(WASM_FRAMEWORK)/.stamp-framework sample.dll debug.html runtime.js - mono --debug packager.exe --copy=always -debug -out=debug_sample --asset=debug.html sample.dll + $(PACKAGER) --copy=always -debug -out=debug_sample --asset=debug.html sample.dll touch $@ TEST_ASSEMBLIES = $(WASM_BCL_DIR)/nunitlite.dll $(WASM_BCL_DIR)/tests/wasm_corlib_test.dll $(WASM_BCL_DIR)/tests/wasm_System_test.dll $(WASM_BCL_DIR)/tests/wasm_System.Core_test.dll build-test-suite: packager.exe $(WASM_FRAMEWORK)/.stamp-framework binding_tests.dll mini_tests.dll main.exe runtime-tests.js - mono packager.exe --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --template=runtime-tests.js --appdir=bin/test-suite --builddir=obj/test-suite --asset=tests/runtime/index.html binding_tests.dll mini_tests.dll main.exe $(TEST_ASSEMBLIES) --linker + $(PACKAGER) --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --template=runtime-tests.js --appdir=bin/test-suite --builddir=obj/test-suite --asset=tests/runtime/index.html binding_tests.dll mini_tests.dll main.exe $(TEST_ASSEMBLIES) --linker ninja -v -C obj/test-suite XUNIT_DIR = $(TOP)/external/xunit-binaries @@ -301,7 +303,7 @@ xunit-runner.exe: xunit-runner.cs define XunitTestTemplate bin/$(2)/mono.js: packager.exe $(WASM_FRAMEWORK)/.stamp-framework xunit-runner.exe runtime-tests.js xunit-exclusions.rsp - mono packager.exe --debugrt --search-path=$(WASM_BCL_DIR)/tests --search-path=$(XUNIT_DIR) --template=runtime-tests.js --appdir=bin/$(2) --builddir=obj/$(2) --asset=xunit-exclusions.rsp xunit-runner.exe $(WASM_BCL_DIR)/tests/xunit.execution.dotnet.dll $(WASM_BCL_DIR)/tests/$(3) $(WASM_BCL_DIR)/tests/Xunit.NetCore.Extensions.dll + $(PACKAGER) --debugrt --search-path=$(WASM_BCL_DIR)/tests --search-path=$(XUNIT_DIR) --template=runtime-tests.js --appdir=bin/$(2) --builddir=obj/$(2) --asset=xunit-exclusions.rsp xunit-runner.exe $(WASM_BCL_DIR)/tests/xunit.execution.dotnet.dll $(WASM_BCL_DIR)/tests/$(3) $(WASM_BCL_DIR)/tests/Xunit.NetCore.Extensions.dll ninja -v -C obj/$(2) build-$(1): bin/$(2)/mono.js @@ -335,16 +337,16 @@ $(BROWSER_TEST_THREADS)/.stamp-browser-test-threads-suite: packager.exe $(WASM_F touch $@ .stamp-build-debugger-test-app: packager.exe binding_tests.dll debugger-test.dll debugger-driver.html - mono packager.exe --copy=always -debugrt -debug --template=runtime.js --builddir=obj/debugger-test-suite --appdir=bin/debugger-test-suite --asset=debugger-driver.html debugger-test.dll + $(PACKAGER) --copy=always -debugrt -debug --template=runtime.js --builddir=obj/debugger-test-suite --appdir=bin/debugger-test-suite --asset=debugger-driver.html debugger-test.dll ninja -v -C obj/debugger-test-suite touch $@ build-aot-sample: packager.exe hello.exe - mono --debug packager.exe --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/aot-sample --nobinding --builddir=obj/aot-sample --aot --template=runtime-tests.js --pinvoke-libs=libfoo hello.exe + $(PACKAGER) --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/aot-sample --nobinding --builddir=obj/aot-sample --aot --template=runtime-tests.js --pinvoke-libs=libfoo hello.exe ninja -v -C obj/aot-sample build-aot-sample-profiled: packager.exe hello.exe data.aotprofile - mono --debug packager.exe --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/aot-sample-profiled --nobinding --builddir=obj/aot-sample-profiled --aot --template=runtime-tests.js --pinvoke-libs=libfoo --aot-profile=data.aotprofile --aot-interp hello.exe + $(PACKAGER) --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/aot-sample-profiled --nobinding --builddir=obj/aot-sample-profiled --aot --template=runtime-tests.js --pinvoke-libs=libfoo --aot-profile=data.aotprofile --aot-interp hello.exe ninja -v -C obj/aot-sample-profiled zlibtest.exe: zlibtest.cs @@ -354,24 +356,24 @@ run-zlib-test: build-zlib-sample (cd bin/zlib-sample && $(SM) runtime.js --run zlibtest.exe) build-zlib-sample: packager.exe zlibtest.exe - mono packager.exe --nobinding --template=runtime-tests.js --out=bin/zlib-sample zlibtest.exe + $(PACKAGER) --nobinding --template=runtime-tests.js --out=bin/zlib-sample zlibtest.exe build-zlib-interp-sample: packager.exe zlibtest.exe - mono --debug packager.exe --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/interp-zlib-sample --nobinding --builddir=obj/interp-zlib-sample --template=runtime-tests.js zlibtest.exe --linker --link-icalls --zlib + $(PACKAGER) --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/interp-zlib-sample --nobinding --builddir=obj/interp-zlib-sample --template=runtime-tests.js zlibtest.exe --linker --link-icalls --zlib ninja -v -C obj/interp-zlib-sample run-zlib-interp-sample: build-zlib-interp-sample (cd bin/interp-zlib-sample && $(SM) runtime.js --run zlibtest.exe) build-zlib-aot-sample: packager.exe zlibtest.exe - mono --debug packager.exe --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/aot-zlib-sample --nobinding --builddir=obj/aot-zlib-sample --aot --template=runtime-tests.js zlibtest.exe --zlib + $(PACKAGER) --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/aot-zlib-sample --nobinding --builddir=obj/aot-zlib-sample --aot --template=runtime-tests.js zlibtest.exe --zlib ninja -v -C obj/aot-zlib-sample run-zlib-aot-sample: build-zlib-aot-sample (cd bin/aot-zlib-sample && $(SM) runtime.js --run zlibtest.exe) build-mixed-sample: packager.exe hello.exe - mono --debug packager.exe --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --aot-interp --aot-assemblies=mscorlib --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/mixed-sample --nobinding --builddir=obj/mixed-sample --template=runtime-tests.js hello.exe + $(PACKAGER) --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --aot-interp --aot-assemblies=mscorlib --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/mixed-sample --nobinding --builddir=obj/mixed-sample --template=runtime-tests.js hello.exe ninja -v -C obj/mixed-sample run-mixed-sample: build-mixed-sample @@ -387,7 +389,7 @@ run-aot-sample-profiled: build-aot-sample-profiled (cd bin/aot-sample-profiled && $(SM) runtime.js --run hello.exe) build-interp-sample: packager.exe hello.exe - mono --debug packager.exe --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/interp-sample --nobinding --builddir=obj/interp-sample --template=runtime-tests.js hello.exe --linker --link-icalls + $(PACKAGER) --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/interp-sample --nobinding --builddir=obj/interp-sample --template=runtime-tests.js hello.exe --linker --link-icalls ninja -v -C obj/interp-sample run-interp-sample: build-interp-sample @@ -397,7 +399,7 @@ threads.exe: threads.cs $(CSC) $(CSC_FLAGS) -out:$@ $(BCL_DEPS) threads.cs build-threads-sample: packager.exe threads.exe - mono --debug packager.exe --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/threads-sample --nobinding --builddir=obj/threads-sample --template=runtime-tests.js --asset=tests/runtime/index.html --threads threads.exe + $(PACKAGER) --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/threads-sample --nobinding --builddir=obj/threads-sample --template=runtime-tests.js --asset=tests/runtime/index.html --threads threads.exe ninja -v -C obj/threads-sample # (cd bin/threads-sample && $(D8) --experimental-wasm-threads --stack-trace-limit=1000 runtime.js -- --run threads.exe) @@ -405,7 +407,7 @@ run-threads-sample: build-threads-sample (npm install --prefix tests/runtime/ && npm start --prefix tests/runtime) build-aot-mini: packager.exe mini_tests.dll main.exe runtime.js - mono --debug packager.exe --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/aot-mini --nobinding --builddir=obj/aot-mini --aot --template=runtime-tests.js mini_tests.dll + $(PACKAGER) --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/aot-mini --nobinding --builddir=obj/aot-mini --aot --template=runtime-tests.js mini_tests.dll ninja -v -C obj/aot-mini check-aot-mini run-aot-mini: build-aot-mini @@ -415,11 +417,11 @@ get-sysnative-exports: nm ../out/wasm-runtime-release/lib/libmono-native.a | grep SystemNative | cut -d ' ' -f 3 | grep -v '^$$' build-aot-bindings-sample: packager.exe sample.dll - mono --debug packager.exe --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/aot-bindings-sample --builddir=obj/aot-bindings-sample --aot --template=runtime.js --link-mode=SdkOnly --asset=sample.html sample.dll + $(PACKAGER) --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/aot-bindings-sample --builddir=obj/aot-bindings-sample --aot --template=runtime.js --link-mode=SdkOnly --asset=sample.html sample.dll ninja -v -C obj/aot-bindings-sample build-aot-bindings-interp-sample: packager.exe sample.dll - mono --debug packager.exe --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/aot-bindings-interp-sample --builddir=obj/aot-bindings-interp-sample --aot --template=runtime.js --link-mode=SdkOnly --linker --link-icalls --asset=sample.html sample.dll + $(PACKAGER) --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/aot-bindings-interp-sample --builddir=obj/aot-bindings-interp-sample --aot --template=runtime.js --link-mode=SdkOnly --linker --link-icalls --asset=sample.html sample.dll ninja -v -C obj/aot-bindings-interp-sample aot-profile/main.exe: aot-profile/main.cs @@ -427,7 +429,7 @@ aot-profile/main.exe: aot-profile/main.cs .PHONY: build-aot-profile build-aot-profile: packager.exe aot-profile/main.exe - mono --debug packager.exe --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/aot-profile --builddir=obj/aot-profile --profile=aot --template=aot-profile/runtime.js --asset=aot-profile/index.html aot-profile/main.exe + $(PACKAGER) --emscripten-sdkdir=$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$(TOP)/sdks/out -appdir=bin/aot-profile --builddir=obj/aot-profile --profile=aot --template=aot-profile/runtime.js --asset=aot-profile/index.html aot-profile/main.exe ninja -C obj/aot-profile data.aotprofile: build-aot-profile @@ -439,7 +441,7 @@ data.aotprofile: build-aot-profile # define InterpTestTemplate build-interp-$(1): packager.exe $(WASM_FRAMEWORK)/.stamp-framework binding_tests.dll mini_tests.dll main.exe runtime-tests.js - mono packager.exe --template=runtime-tests.js --appdir=bin/interp-$(1) --builddir=obj/interp-$(1) --asset=tests/runtime/index.html binding_tests.dll mini_tests.dll main.exe $(TEST_ASSEMBLIES) --linker + $(PACKAGER) --template=runtime-tests.js --appdir=bin/interp-$(1) --builddir=obj/interp-$(1) --asset=tests/runtime/index.html binding_tests.dll mini_tests.dll main.exe $(TEST_ASSEMBLIES) --linker ninja -v -C obj/interp-$(1) clean-interp-$(1): @@ -460,7 +462,7 @@ $(eval $(call InterpTestTemplate,System)) define AotTestTemplate build-aot-$(1): packager.exe runtime-tests.js main.exe $$(WASM_FRAMEWORK)/.stamp-framework $$(WASM_FRAMEWORK)/WebAssembly.Bindings.dll binding_tests.dll $$(WASM_BCL_DIR)/nunitlite.dll $$(WASM_BCL_DIR)/tests/$(2) - mono --debug packager.exe --emscripten-sdkdir=$$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$$(TOP)/sdks/out -appdir=bin/aot-$(1) --builddir=obj/aot-$(1) --aot --template=runtime-tests.js main.exe binding_tests.dll $$(WASM_BCL_DIR)/tests/$(2) --linker --link-icalls $(4) + $(PACKAGER) --emscripten-sdkdir=$$(EMSCRIPTEN_SDK_DIR) --mono-sdkdir=$$(TOP)/sdks/out -appdir=bin/aot-$(1) --builddir=obj/aot-$(1) --aot --template=runtime-tests.js main.exe binding_tests.dll $$(WASM_BCL_DIR)/tests/$(2) --linker --link-icalls $(4) ninja -v -C obj/aot-$(1) clean-aot-$(1): |