summaryrefslogtreecommitdiff
path: root/xmake/core/base/cpu.lua
diff options
context:
space:
mode:
authorxq114 <[email protected]>2022-11-22 14:41:18 +0800
committerxq114 <[email protected]>2022-11-22 14:41:18 +0800
commitaa68dba58ac2f185dadeeb70565d56ec3e9480ff (patch)
tree5d77ebbf19f0a66cd5b669004c54504212e36bc9 /xmake/core/base/cpu.lua
parent362e78a27167239d1fb83ae5afe1f9728d65d655 (diff)
update cpu detection for new intel cpus
Diffstat (limited to 'xmake/core/base/cpu.lua')
-rw-r--r--xmake/core/base/cpu.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/core/base/cpu.lua b/xmake/core/base/cpu.lua
index aff0ee952..ccaafcb79 100644
--- a/xmake/core/base/cpu.lua
+++ b/xmake/core/base/cpu.lua
@@ -75,7 +75,13 @@ function cpu._march_intel()
end
-- big cores
- if cpu_model == 140 then
+ if cpu_model == 183 then
+ return "Raptor Lake"
+ elseif cpu_model == 151 or cpu_model == 154 then
+ return "Alder Lake"
+ elseif cpu_model == 167 then
+ return "Rocket Lake"
+ elseif cpu_model == 140 then
return "Tiger Lake"
elseif cpu_model == 126 or cpu_model == 125 then
return "Ice Lake"