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
|
// 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'
|
||||||
|
Loading…
Reference in New Issue
Block a user