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:
198198 docker exec --user ${DOCKER_USER} --workdir ${FOUNDRY_ROOT} ${CONTAINER_NAME} forge install --no-git runtimeverification/kontrol-cheatcodes@a5dd4b0
199199 docker exec --user ${DOCKER_USER} --workdir ${FOUNDRY_ROOT} ${CONTAINER_NAME} forge build
200200 - 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
202202 - name : ' Run kontrol prove'
203203 run : docker exec --user ${DOCKER_USER} --workdir ${FOUNDRY_ROOT} ${CONTAINER_NAME} kontrol prove --match-test 'AssertTest.test_assert_true()'
204204 - name : ' Run kontrol show'
Original file line number Diff line number Diff line change @@ -160,6 +160,15 @@ def should_rekompile() -> bool:
160160
161161 if should_rekompile ():
162162 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+
163172 kevm_kompile (
164173 target = options .target ,
165174 output_dir = output_dir ,
@@ -172,6 +181,7 @@ def should_rekompile() -> bool:
172181 debug = options .debug ,
173182 verbose = options .verbose ,
174183 ignore_warnings = options .ignore_warnings ,
184+ optimization = optimization ,
175185 )
176186
177187 update_kompilation_digest ()
You can’t perform that action at this time.
0 commit comments