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:

committed by
Alexander Medvednikov

parent
ca239fcf98
commit
083d747302
@@ -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'
|
||||
}
|
||||
|
Reference in New Issue
Block a user