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 - name: Test vid
run: | run: |
git clone --depth 1 https://github.com/vlang/vid.git git clone --depth 1 https://github.com/vlang/vid.git
cd vid && ../v -debug -o vid . cd vid && ../v -o vid .
build-ubuntu: build-ubuntu:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04

View File

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