v.builder: fix `./v examples/v_script.vsh` on windows (this quickfix is thanks to yuyi98)

pull/11459/head
Delyan Angelov 2021-09-10 12:29:43 +03:00
parent 48f0ef0a33
commit bdd053fcf1
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ pub fn (b &Builder) import_graph() &depgraph.DepGraph {
deps << 'builtin'
if b.pref.backend == .c {
// TODO JavaScript backend doesn't handle os for now
if b.pref.is_vsh && p.mod.name != 'os' {
if b.pref.is_vsh && p.mod.name !in ['os', 'dl'] {
deps << 'os'
}
}