Skip to content

Commit eeeb22e

Browse files
committed
tools: add a -new-transformer task to v test-all. Remove -skip-unused flags (it is the default for ~1 year).
1 parent 22fafd6 commit eeeb22e

1 file changed

Lines changed: 11 additions & 21 deletions

File tree

‎cmd/tools/vtest-all.v‎

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,12 @@ fn get_all_commands() []Command {
105105
rmfile: 'hhww.c'
106106
}
107107
res << Command{
108-
line: '${vexe} -skip-unused examples/hello_world.v'
109-
okmsg: 'V can compile hello world with -skip-unused.'
110-
rmfile: 'examples/hello_world'
111-
}
112-
res << Command{
113-
line: '${vexe} -skip-unused test vlib/builtin'
114-
okmsg: 'V can test vlib/builtin with -skip-unused'
108+
line: '${vexe} test vlib/builtin'
109+
okmsg: 'V can test vlib/builtin'
115110
}
116111
res << Command{
117-
line: '${vexe} -skip-unused -profile - examples/hello_world.v'
118-
okmsg: 'V can compile hello world with both -skip-unused and -profile .'
112+
line: '${vexe} -profile - examples/hello_world.v'
113+
okmsg: 'V can compile hello world with -profile .'
119114
rmfile: 'examples/hello_world'
120115
}
121116
res << Command{
@@ -242,13 +237,8 @@ fn get_all_commands() []Command {
242237
rmfile: 'hw.js'
243238
}
244239
res << Command{
245-
line: '${vexe} -skip-unused -b js -o hw_skip_unused.js examples/hello_world.v'
246-
okmsg: 'V compiles hello_world.v on the JS backend, with -skip-unused'
247-
rmfile: 'hw_skip_unused.js'
248-
}
249-
res << Command{
250-
line: '${vexe} -skip-unused examples/2048'
251-
okmsg: 'V can compile 2048 with -skip-unused.'
240+
line: '${vexe} examples/2048'
241+
okmsg: 'V can compile 2048.'
252242
rmfile: 'examples/2048/2048'
253243
}
254244
if _ := os.find_abs_path_of_executable('emcc') {
@@ -261,8 +251,8 @@ fn get_all_commands() []Command {
261251
println('> emcc not found, skipping `v -os wasm32_emscripten examples/2048`.')
262252
}
263253
res << Command{
264-
line: '${vexe} -skip-unused -live examples/hot_reload/bounce.v'
265-
okmsg: 'V can compile the hot code reloading bounce.v example with both: -skip-unused -live'
254+
line: '${vexe} -live examples/hot_reload/bounce.v'
255+
okmsg: 'V can compile the hot code reloading bounce.v example with -live'
266256
rmfile: 'examples/hot_reload/bounce'
267257
}
268258
}
@@ -287,9 +277,9 @@ fn get_all_commands() []Command {
287277
rmfile: 'vtmp_prealloc'
288278
}
289279
res << Command{
290-
line: '${vexe} -o vtmp_unused -skip-unused cmd/v'
291-
okmsg: 'V can compile itself with -skip-unused.'
292-
rmfile: 'vtmp_unused'
280+
line: '${vexe} -o vtmp_ntransformer -new-transformer cmd/v'
281+
okmsg: 'V can compile itself with -new-transformer.'
282+
rmfile: 'vtmp_ntransformer'
293283
}
294284
$if linux {
295285
res << Command{

0 commit comments

Comments
 (0)