mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
freebsd: fix compilation
This commit is contained in:
parent
67bdc2c7a9
commit
4b7aa4ec09
@ -289,6 +289,10 @@ fn (v mut V) cc() {
|
||||
if v.os == .linux {
|
||||
a << ' -ldl '
|
||||
}
|
||||
if v.os == .freebsd {
|
||||
// FreeBSD: backtrace needs execinfo library while linking
|
||||
a << ' -lexecinfo '
|
||||
}
|
||||
}
|
||||
|
||||
if !v.pref.is_bare && v.os == .js && os.user_os() == 'linux' {
|
||||
|
@ -1039,6 +1039,9 @@ pub fn tmpdir() string {
|
||||
$if linux {
|
||||
if path == '' { path = '/tmp' }
|
||||
}
|
||||
$if freebsd {
|
||||
if path == '' { path = '/tmp' }
|
||||
}
|
||||
$if macos {
|
||||
/*
|
||||
if path == '' {
|
||||
|
Loading…
Reference in New Issue
Block a user