File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,10 @@ fn build_fast_tcc() {
128128}
129129
130130fn v_self_compilation_usecache_tcc() {
131+ $if !enable_usecache_test ? {
132+ eprintln('> ${@LOCATION} use `-d enable_usecache_test` in VFLAGS to enable this task')
133+ return
134+ }
131135 exec('v wipe-cache')
132136 exec('v -usecache examples/hello_world.v')
133137 exec('./examples/hello_world')
@@ -199,6 +203,10 @@ fn v_self_compilation_gcc() {
199203}
200204
201205fn v_self_compilation_usecache_gcc() {
206+ $if !enable_usecache_test ? {
207+ eprintln('> ${@LOCATION} use `-d enable_usecache_test` in VFLAGS to enable this task')
208+ return
209+ }
202210 exec('v wipe-cache')
203211 exec('v -usecache examples/hello_world.v')
204212 exec('examples/hello_world')
@@ -317,6 +325,10 @@ fn v_self_compilation_clang() {
317325}
318326
319327fn v_self_compilation_usecache_clang() {
328+ $if !enable_usecache_test ? {
329+ eprintln('> ${@LOCATION} use `-d enable_usecache_test` in VFLAGS to enable this task')
330+ return
331+ }
320332 exec('v wipe-cache')
321333 exec('v -usecache examples/hello_world.v')
322334 exec('./examples/hello_world')
Original file line number Diff line number Diff line change @@ -98,6 +98,10 @@ fn build_v_with_prealloc() {
9898}
9999
100100fn v_self_compilation_usecache() {
101+ $if !enable_usecache_test ? {
102+ eprintln('> ${@LOCATION} use `-d enable_usecache_test` in VFLAGS to enable this task')
103+ return
104+ }
101105 exec('v -usecache examples/hello_world.v')
102106 exec('./examples/hello_world')
103107 exec('v -o v2 -usecache cmd/v')
You can’t perform that action at this time.
0 commit comments