a small cached modules fix

pull/2276/head
Alexander Medvednikov 2019-10-10 03:48:11 +03:00
parent 4d941b5fdb
commit 48e13a3362
2 changed files with 9 additions and 6 deletions

View File

@ -24,7 +24,7 @@ jobs:
- name: Test vid
run: |
git clone --depth 1 https://github.com/vlang/vid.git
cd vid && ../v -debug -o vid .
cd vid && ../v -o vid .
build-ubuntu:
runs-on: ubuntu-18.04

View File

@ -111,9 +111,9 @@ fn (v mut V) cc() {
a << '-c'
}
else if v.pref.is_debug {
libs = '$v_modules_path/vlib/builtin.o ' +
'$v_modules_path/vlib/strings.o '+
'$v_modules_path/vlib/math.o '
libs = '$v_modules_path/vlib/builtin.o '
// '$v_modules_path/vlib/strings.o '+
// '$v_modules_path/vlib/math.o '
/*
if !os.file_exists(libs) {
println('object file `$libs` not found')
@ -124,10 +124,13 @@ fn (v mut V) cc() {
if imp == 'webview' {
continue
}
path := '"$v_modules_path/vlib/${imp}.o"'
path := '$v_modules_path/vlib/${imp}.o'
println('adding ${imp}.o')
if os.file_exists(path) {
libs += ' ' + path
}
} else {
println('$path not found... build module $imp')
}
}
}
if v.pref.sanitize {