diff options
| -rw-r--r-- | xmake/core/base/cpu.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
