fix for #1020
parent
144d7ca362
commit
36908fa304
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue