mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix Linux build
This commit is contained in:
parent
e1a6453302
commit
9efe305093
@ -597,7 +597,7 @@ mut args := ''
|
|||||||
a << '-x objective-c'
|
a << '-x objective-c'
|
||||||
}
|
}
|
||||||
// Without these libs compilation will fail on Linux
|
// Without these libs compilation will fail on Linux
|
||||||
if v.os == .linux && v.pref.build_mode != .build {
|
if (v.os == .linux || os.user_os() == 'linux') && v.pref.build_mode != .build {
|
||||||
a << '-lm -ldl -lpthread'
|
a << '-lm -ldl -lpthread'
|
||||||
}
|
}
|
||||||
// Find clang executable
|
// Find clang executable
|
||||||
|
Loading…
Reference in New Issue
Block a user