From 36908fa30495c3d1997e87b52da9413977f2bd44 Mon Sep 17 00:00:00 2001 From: aguspiza Date: Sat, 6 Jul 2019 16:46:06 +0200 Subject: [PATCH] fix for #1020 --- compiler/main.v | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/main.v b/compiler/main.v index 35ac0bb35c..c423a02f80 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -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 {