1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tools: fix v build-examples on windows

This commit is contained in:
Delyan Angelov 2021-12-12 01:20:21 +02:00
parent 79de408ef0
commit bf835d47d8
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -12,18 +12,18 @@ const efolders = [
fn main() { fn main() {
args_string := os.args[1..].join(' ') args_string := os.args[1..].join(' ')
params := args_string.all_before('build-examples') params := args_string.all_before('build-examples')
skip_prefixes := efolders.map(os.join_path(vroot, it)) skip_prefixes := efolders.map(os.real_path(os.join_path_single(vroot, it)))
res := testing.v_build_failing_skipped(params, 'examples', skip_prefixes, fn (mut session testing.TestSession) { res := testing.v_build_failing_skipped(params, 'examples', skip_prefixes, fn (mut session testing.TestSession) {
for x in efolders { for x in efolders {
pathsegments := x.split_any('/') pathsegments := x.split_any('/')
session.add(os.join_path(vroot, ...pathsegments)) session.add(os.real_path(os.join_path(vroot, ...pathsegments)))
} }
}) })
if res { if res {
exit(1) exit(1)
} }
if testing.v_build_failing_skipped(params + '-live', os.join_path('examples', 'hot_reload'), if testing.v_build_failing_skipped(params + '-live', os.join_path_single('examples',
skip_prefixes, fn (mut session testing.TestSession) {}) 'hot_reload'), skip_prefixes, fn (mut session testing.TestSession) {})
{ {
exit(1) exit(1)
} }