1
0
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:
Delyan Angelov 2019-12-18 12:21:21 +02:00 committed by Alexander Medvednikov
parent 67bdc2c7a9
commit 4b7aa4ec09
2 changed files with 7 additions and 0 deletions

View File

@ -289,6 +289,10 @@ fn (v mut V) cc() {
if v.os == .linux { if v.os == .linux {
a << ' -ldl ' 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' { if !v.pref.is_bare && v.os == .js && os.user_os() == 'linux' {

View File

@ -1039,6 +1039,9 @@ pub fn tmpdir() string {
$if linux { $if linux {
if path == '' { path = '/tmp' } if path == '' { path = '/tmp' }
} }
$if freebsd {
if path == '' { path = '/tmp' }
}
$if macos { $if macos {
/* /*
if path == '' { if path == '' {