fix cc option order

pull/417/head
musou1500 2019-06-23 16:04:43 +09:00 committed by Alex Medvednikov
parent c3df224c97
commit 1152180a71
1 changed files with 2 additions and 2 deletions

View File

@ -453,6 +453,8 @@ mut args := ''
// Output executable name // Output executable name
// else { // else {
a << '-o $c.out_name' a << '-o $c.out_name'
// The C file we are compiling
a << '$TmpPath/$c.out_name_c'
// } // }
// Min macos version is mandatory I think? // Min macos version is mandatory I think?
if c.os == MAC { if c.os == MAC {
@ -464,8 +466,6 @@ mut args := ''
if c.os == MAC { if c.os == MAC {
a << '-x objective-c' a << '-x objective-c'
} }
// The C file we are compiling
a << '$TmpPath/$c.out_name_c'
// Without these libs compilation will fail on Linux // Without these libs compilation will fail on Linux
if c.os == LINUX && c.build_mode != BUILD { if c.os == LINUX && c.build_mode != BUILD {
a << '-lm -ldl -lpthread' a << '-lm -ldl -lpthread'