From 2d43b835847fa159db8e4d45bb57fb27ae4c813c Mon Sep 17 00:00:00 2001 From: Laurent Cheylus Date: Wed, 7 May 2025 07:43:06 +0200 Subject: [PATCH] tools: fix v doctor output on FreeBSD ; do not run ldd to get the glibc version (#24427) --- cmd/tools/vdoctor.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tools/vdoctor.v b/cmd/tools/vdoctor.v index b28600db52..3618e53121 100644 --- a/cmd/tools/vdoctor.v +++ b/cmd/tools/vdoctor.v @@ -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')