File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ jobs:
198
198
docker exec --user ${DOCKER_USER} --workdir ${FOUNDRY_ROOT} ${CONTAINER_NAME} forge install --no-git runtimeverification/kontrol-cheatcodes@a5dd4b0
199
199
docker exec --user ${DOCKER_USER} --workdir ${FOUNDRY_ROOT} ${CONTAINER_NAME} forge build
200
200
- name : ' Run kontrol build'
201
- run : docker exec --user ${DOCKER_USER} --workdir ${FOUNDRY_ROOT} ${CONTAINER_NAME} kontrol build
201
+ run : docker exec --user ${DOCKER_USER} --workdir ${FOUNDRY_ROOT} ${CONTAINER_NAME} kontrol build -O2
202
202
- name : ' Run kontrol prove'
203
203
run : docker exec --user ${DOCKER_USER} --workdir ${FOUNDRY_ROOT} ${CONTAINER_NAME} kontrol prove --match-test 'AssertTest.test_assert_true()'
204
204
- name : ' Run kontrol show'
Original file line number Diff line number Diff line change @@ -160,6 +160,15 @@ def should_rekompile() -> bool:
160
160
161
161
if should_rekompile ():
162
162
output_dir = foundry .kompiled
163
+
164
+ optimization = 0
165
+ if options .o1 :
166
+ optimization = 1
167
+ if options .o2 :
168
+ optimization = 2
169
+ if options .o3 :
170
+ optimization = 3
171
+
163
172
kevm_kompile (
164
173
target = options .target ,
165
174
output_dir = output_dir ,
@@ -172,6 +181,7 @@ def should_rekompile() -> bool:
172
181
debug = options .debug ,
173
182
verbose = options .verbose ,
174
183
ignore_warnings = options .ignore_warnings ,
184
+ optimization = optimization ,
175
185
)
176
186
177
187
update_kompilation_digest ()
You can’t perform that action at this time.
0 commit comments