From 9efe305093b49aa6312154cd36c0e5af17af2ecf Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 10 Jul 2019 21:57:15 +0200 Subject: [PATCH] fix Linux build --- compiler/main.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/main.v b/compiler/main.v index 1b84e54814..0ab80ff056 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -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