summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSon Ho2022-02-09 11:32:08 +0100
committerSon Ho2022-02-09 11:32:08 +0100
commitd92f0cdf60f4ee99c5e1a0d74dded5be6bfb949a (patch)
tree18155b3551a0102cb1e2563abb4d85cbe4ab4c08
parent2291934834131e8a6c0c839afa83a2cfb00162d8 (diff)
Fix the Makefile to make sure the translation options are correct
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 67212e22..068d5f61 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ DEST_DIR=tests/
# Default translation options:
# - insert calls to the normalizer in the translated code to test the
# generated unit functions
-TRANS_OPTIONS=-test-trans-units
+TRANS_OPTIONS:=-test-trans-units
# Build the project and test it
.PHONY: build-test
@@ -23,7 +23,8 @@ build:
test: build translate-no_nested_borrows translate-hashmap
# Add specific options to some tests
-translate-no_nested_borrows: OPTIONS := $(OPTIONS) -test-units
+translate-no_nested_borrows: TRANS_OPTIONS:=$(TRANS_OPTIONS) -test-units
+translate-hashmap: TRANS_OPTIONS:=$(TRANS_OPTIONS)
# Generic rule to extract the CFIM from a rust file
.PHONY: gen-cfim-%