pull/1046/head
aguspiza 2019-07-06 16:46:06 +02:00 committed by Alexander Medvednikov
parent 144d7ca362
commit 36908fa304
1 changed files with 5 additions and 5 deletions

View File

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