"#include" generated instruction tables and update build process

This commit is contained in:
Amaan Cheval 2018-02-15 10:29:21 +05:30 committed by Fabian
parent 948fa047d0
commit e7cfc98922
3 changed files with 13 additions and 28666 deletions

View file

@ -4,6 +4,9 @@ BROWSER=chromium
NASM_TEST_DIR=./tests/nasm
COVERAGE_DIR=./tests/coverage
GEN_INSTRUCTION_TABLE_CMDS=./gen/generate_interpreter.js; ./gen/generate_jit.js;
GEN_SCRIPTS := $(wildcard gen/*.js)
# Enable manually and recompile v86-debug.wasm for coverage-enabled tests
ifeq ($(ENABLE_COV), 1)
CC_COVERAGE_FLAGS=--coverage -fprofile-instr-generate
@ -152,8 +155,9 @@ build/libv86-debug.js: $(CLOSURE) src/*.js lib/*.js src/browser/*.js
--js $(BROWSER_FILES)\
--js $(LIB_FILES)
build/v86.wasm: src/native/*.c src/native/*.h src/native/codegen/*.c src/native/codegen/*.h src/native/profiler/* src/native/call-indirect.ll
build/v86.wasm: src/native/*.c src/native/*.h src/native/codegen/*.c src/native/codegen/*.h src/native/profiler/* src/native/call-indirect.ll $(GEN_SCRIPTS)
mkdir -p build
$(GEN_INSTRUCTION_TABLE_CMDS)
-ls -lh build/v86.wasm
emcc src/native/*.c src/native/profiler/profiler.c src/native/codegen/codegen.c src/native/call-indirect.ll \
$(CC_FLAGS) \
@ -165,8 +169,9 @@ build/v86.wasm: src/native/*.c src/native/*.h src/native/codegen/*.c src/native/
-o build/v86.wasm
ls -lh build/v86.wasm
build/v86-debug.wasm: src/native/*.c src/native/*.h src/native/codegen/*.c src/native/codegen/*.h src/native/profiler/* src/native/*.ll
build/v86-debug.wasm: src/native/*.c src/native/*.h src/native/codegen/*.c src/native/codegen/*.h src/native/profiler/* src/native/*.ll $(GEN_SCRIPTS)
mkdir -p build/coverage
$(GEN_INSTRUCTION_TABLE_CMDS)
-ls -lh build/v86-debug.wasm
emcc src/native/*.c src/native/profiler/profiler.c src/native/codegen/codegen.c src/native/*.ll \
$(CC_FLAGS) \

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff