Browse Source

Improve name of coverage variable in Makefile

Amaan Cheval 6 years ago
parent
commit
8b62c8c44d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -6,7 +6,7 @@ COVERAGE_DIR=./tests/coverage
 
 # Enable manually and recompile v86-debug.wasm for coverage-enabled tests
 ifeq ($(ENABLE_COV), 1)
-COVERAGE=--coverage -fprofile-instr-generate
+CC_COVERAGE_FLAGS=--coverage -fprofile-instr-generate
 endif
 
 all: build/v86_all.js
@@ -171,7 +171,7 @@ build/v86-debug.wasm: src/native/*.c src/native/*.h src/native/codegen/*.c src/n
 	-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) \
-		$(COVERAGE) \
+		$(CC_COVERAGE_FLAGS) \
 		-Os \
 		-o build/v86-debug.wasm
 	ls -lh build/v86-debug.wasm