mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Buildsystem/Macro: Add support for Intel Family 6 Model 30 (Allendale) CPU optimizations (Based on Westmere)
--HG-- branch : trunk
This commit is contained in:
@@ -42,6 +42,8 @@ macro(OptimizeForArchitecture)
|
||||
if(_cpu_family EQUAL 6)
|
||||
# Any recent Intel CPU except NetBurst
|
||||
if(_cpu_model EQUAL 37)
|
||||
set(TARGET_ARCHITECTURE "allendale")
|
||||
if(_cpu_model EQUAL 30)
|
||||
set(TARGET_ARCHITECTURE "westmere")
|
||||
elseif(_cpu_model EQUAL 29)
|
||||
set(TARGET_ARCHITECTURE "penryn")
|
||||
@@ -90,6 +92,10 @@ macro(OptimizeForArchitecture)
|
||||
list(APPEND _march_flag_list "nehalem")
|
||||
list(APPEND _march_flag_list "core2")
|
||||
list(APPEND _available_vector_units_list "sse" "sse2" "sse3" "ssse3" "sse4.1" "sse4.2")
|
||||
elseif(TARGET_ARCHITECTURE STREQUAL "allendale")
|
||||
list(APPEND _march_flag_list "allendale")
|
||||
list(APPEND _march_flag_list "core2")
|
||||
list(APPEND _available_vector_units_list "sse" "sse2" "sse3" "ssse3" "sse4.1" "sse4.2")
|
||||
elseif(TARGET_ARCHITECTURE STREQUAL "westmere")
|
||||
list(APPEND _march_flag_list "westmere")
|
||||
list(APPEND _march_flag_list "core2")
|
||||
|
||||
Reference in New Issue
Block a user