diff options
| author | ruki <[email protected]> | 2021-04-06 00:06:37 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-04-06 00:06:37 +0800 |
| commit | aef479e79330491c6c03234bc2d409f3087d8a03 (patch) | |
| tree | 8120ee715957265791b7a880ad40d659a3aa601d /xmake/core/base/cpu.lua | |
| parent | 52635df1a11759f5a93c5269d8e621150c520d4f (diff) | |
fix cpu info for freebsd
Diffstat (limited to 'xmake/core/base/cpu.lua')
| -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 |
