tools: fix v doctor output on FreeBSD ; do not run ldd to get the glibc version (#24427)

This commit is contained in:
Laurent Cheylus 2025-05-07 07:43:06 +02:00 committed by GitHub
parent dd859eae55
commit 2d43b83584
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -149,7 +149,7 @@ fn (mut a App) collect_info() {
}
a.report_tcc_version('thirdparty/tcc')
a.line('emcc version', a.cmd(command: 'emcc --version'))
if os_kind != 'openbsd' {
if os_kind != 'openbsd' && os_kind != 'freebsd' {
a.line('glibc version', a.cmd(command: 'ldd --version'))
} else {
a.line('glibc version', 'N/A')