1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

V.js: on linux -lm is needed

This commit is contained in:
Delyan Angelov
2019-09-16 22:00:59 +03:00
committed by Alexander Medvednikov
parent ca239fcf98
commit 083d747302
2 changed files with 29 additions and 4 deletions

View File

@@ -168,6 +168,11 @@ fn (v mut V) cc() {
a << ' -ldl '
}
}
if v.os == .js && os.user_os() == 'linux' {
a << '-lm'
}
if v.os == .windows {
a << '-DUNICODE -D_UNICODE'
}