From 1152180a715f7a4f8e935d1396def8f75f57ed1c Mon Sep 17 00:00:00 2001 From: musou1500 Date: Sun, 23 Jun 2019 16:04:43 +0900 Subject: [PATCH] fix cc option order --- compiler/main.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/main.v b/compiler/main.v index 2e79ebc0b9..d3226e74c0 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -453,6 +453,8 @@ mut args := '' // Output executable name // else { a << '-o $c.out_name' + // The C file we are compiling + a << '$TmpPath/$c.out_name_c' // } // Min macos version is mandatory I think? if c.os == MAC { @@ -464,8 +466,6 @@ mut args := '' if c.os == MAC { a << '-x objective-c' } - // The C file we are compiling - a << '$TmpPath/$c.out_name_c' // Without these libs compilation will fail on Linux if c.os == LINUX && c.build_mode != BUILD { a << '-lm -ldl -lpthread'