File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,18 @@ LIBRARY_ROOT := $(PWD)
45
45
# but still build everything in their local library directory.
46
46
SMITHY_MODEL_ROOT := $(LIBRARY_ROOT ) /Model
47
47
48
+ # Later versions of Dafny no longer default to adding "_Compile"
49
+ # to the names of modules when translating.
50
+ # Our target language code still assumes it does,
51
+ # so IF the /compileSuffix option is available in our verion of Dafny
52
+ # we need to provide it.
53
+ COMPILE_SUFFIX_OPTION_CHECK_EXIT_CODE := $(shell dafny /help | grep -q /compileSuffix; echo $$? )
54
+ ifeq ($(COMPILE_SUFFIX_OPTION_CHECK_EXIT_CODE ) , 0)
55
+ COMPILE_SUFFIX_OPTION := -compileSuffix:1
56
+ else
57
+ COMPILE_SUFFIX_OPTION :=
58
+ endif
59
+
48
60
# ######################### Dafny targets
49
61
50
62
# Verify the entire project
@@ -152,6 +164,7 @@ transpile_implementation:
152
164
-spillTargetCode:3 \
153
165
-compile:0 \
154
166
-optimizeErasableDatatypeWrapper:0 \
167
+ $(COMPILE_SUFFIX_OPTION ) \
155
168
-quantifierSyntax:3 \
156
169
-unicodeChar:0 \
157
170
-functionSyntax:3 \
@@ -174,6 +187,7 @@ transpile_test:
174
187
-runAllTests:1 \
175
188
-compile:0 \
176
189
-optimizeErasableDatatypeWrapper:0 \
190
+ $(COMPILE_SUFFIX_OPTION ) \
177
191
-quantifierSyntax:3 \
178
192
-unicodeChar:0 \
179
193
-functionSyntax:3 \
You can’t perform that action at this time.
0 commit comments