From aef479e79330491c6c03234bc2d409f3087d8a03 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 6 Apr 2021 00:06:37 +0800 Subject: fix cpu info for freebsd --- xmake/core/base/cpu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/core/base/cpu.lua') diff --git a/xmake/core/base/cpu.lua b/xmake/core/base/cpu.lua index ec24ab789..1d4f7cc16 100644 --- a/xmake/core/base/cpu.lua +++ b/xmake/core/base/cpu.lua @@ -218,7 +218,7 @@ function cpu._info() elseif os.host() == "bsd" then local ok, dmesginfo = os.iorun("dmesg") if ok and dmesginfo then - for _, line in ipairs(proc_cpuinfo:split('\n', {plain = true})) do + for _, line in ipairs(dmesginfo:split('\n', {plain = true})) do if not cpuinfo.vendor_id and line:startswith("Origin=") then cpuinfo.vendor_id = line:match("Origin=\"(.-)\"") end -- cgit v1.3.1