1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
This commit is contained in:
aguspiza 2019-07-06 16:46:06 +02:00 committed by Alexander Medvednikov
parent 144d7ca362
commit 36908fa304

View File

@ -432,13 +432,13 @@ fn (c &V) cc_windows_cross() {
}
mut libs := ''
if c.pref.build_mode == .default_mode {
libs = '$TmpPath/vlib/builtin.o'
libs = '"$TmpPath/vlib/builtin.o"'
if !os.file_exists(libs) {
println('`builtin.o` not found')
exit(1)
}
for imp in c.table.imports {
libs += ' $TmpPath/vlib/${imp}.o'
libs += ' "$TmpPath/vlib/${imp}.o"'
}
}
args += ' $c.out_name_c '
@ -521,7 +521,7 @@ fn (v mut V) cc() {
//
}
else if v.pref.build_mode == .default_mode {
libs = '$TmpPath/vlib/builtin.o'
libs = '"$TmpPath/vlib/builtin.o"'
if !os.file_exists(libs) {
println('`builtin.o` not found')
exit(1)
@ -530,7 +530,7 @@ fn (v mut V) cc() {
if imp == 'webview' {
continue
}
libs += ' $TmpPath/vlib/${imp}.o'
libs += ' "$TmpPath/vlib/${imp}.o"'
}
}
// -I flags
@ -562,7 +562,7 @@ mut args := ''
// else {
a << '-o $v.out_name'
// The C file we are compiling
a << '$TmpPath/$v.out_name_c'
a << '"$TmpPath/$v.out_name_c"'
// }
// Min macos version is mandatory I think?
if v.os == MAC {