fix Linux build

pull/1082/head
Alexander Medvednikov 2019-07-10 21:57:15 +02:00
parent e1a6453302
commit 9efe305093
1 changed files with 1 additions and 1 deletions

View File

@ -597,7 +597,7 @@ mut args := ''
a << '-x objective-c'
}
// 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'
}
// Find clang executable