mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix cc option order
This commit is contained in:
parent
c3df224c97
commit
1152180a71
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user