diff options
| author | ruki <[email protected]> | 2021-04-06 22:31:55 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-04-06 22:31:55 +0800 |
| commit | 815553f6850001c1f5eb23f64453a5efd9bf517d (patch) | |
| tree | 778c6b722ed201bd121250b38931384de5875892 | |
| parent | 252144b5e88ee7b7a5b95566175c103052d88553 (diff) | |
add model name for bsd
| -rw-r--r-- | xmake/core/base/cpu.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/core/base/cpu.lua b/xmake/core/base/cpu.lua index c5b4fac1e..fe9bf9a70 100644 --- a/xmake/core/base/cpu.lua +++ b/xmake/core/base/cpu.lua @@ -246,6 +246,7 @@ function cpu._info() if cpuinfo.cpu_features then cpuinfo.cpu_features = cpuinfo.cpu_features:lower():gsub(",", " ") end + cpuinfo.model_name = os.iorun("sysctl -n hw.model") end end cpu._CPUINFO = cpuinfo |
