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

tools: create the vmodules folder, when it does not exist, on v translate hw.c

This commit is contained in:
Delyan Angelov 2022-07-31 15:43:04 +03:00
parent b8438ded32
commit fa75713bc3
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -16,6 +16,7 @@ fn main() {
} }
// Git clone c2v // Git clone c2v
if !os.exists(c2v_dir) { if !os.exists(c2v_dir) {
os.mkdir_all(vmodules)?
println('C2V is not installed. Cloning C2V to $c2v_dir ...') println('C2V is not installed. Cloning C2V to $c2v_dir ...')
os.chdir(vmodules)? os.chdir(vmodules)?
res := os.execute('git clone https://github.com/vlang/c2v') res := os.execute('git clone https://github.com/vlang/c2v')