Prevent auto-enabling gen flags for pre-gen12 devices on Windows
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
parent
23eff82d0a
commit
9d18df63a9
|
@ -5,13 +5,14 @@
|
|||
#
|
||||
|
||||
if(WIN32)
|
||||
set(SUPPORT_GEN8 FALSE CACHE BOOL "Support Gen8 devices" FORCE)
|
||||
set(SUPPORT_GEN9 FALSE CACHE BOOL "Support Gen9 devices" FORCE)
|
||||
set(SUPPORT_GEN11 FALSE CACHE BOOL "Support Gen11 devices" FORCE)
|
||||
DISABLE_FLAGS_FOR("GEN8" "BDW")
|
||||
DISABLE_FLAGS_FOR("GEN9" "SKL" "KBL" "BXT" "GLK" "CFL")
|
||||
DISABLE_FLAGS_FOR("GEN11" "ICLLP" "LKF" "EHL")
|
||||
else()
|
||||
SET_FLAGS_FOR("GEN8" "BDW")
|
||||
SET_FLAGS_FOR("GEN9" "SKL" "KBL" "BXT" "GLK" "CFL")
|
||||
SET_FLAGS_FOR("GEN11" "ICLLP" "LKF" "EHL")
|
||||
endif()
|
||||
SET_FLAGS_FOR("GEN8" "BDW")
|
||||
SET_FLAGS_FOR("GEN9" "SKL" "KBL" "BXT" "GLK" "CFL")
|
||||
SET_FLAGS_FOR("GEN11" "ICLLP" "LKF" "EHL")
|
||||
SET_FLAGS_FOR("GEN12LP" "TGLLP" "RKL" "ADLS" "ADLP" "DG1" "ADLN")
|
||||
SET_FLAGS_FOR("XE_HP_CORE" "XE_HP_SDV")
|
||||
SET_FLAGS_FOR("XE_HPG_CORE" "DG2")
|
||||
|
|
|
@ -188,6 +188,15 @@ macro(SET_FLAGS_FOR CORE_TYPE)
|
|||
endif()
|
||||
endmacro()
|
||||
|
||||
macro(DISABLE_FLAGS_FOR CORE_TYPE)
|
||||
set(SUPPORT_${CORE_TYPE} FALSE CACHE BOOL "Support ${CORE_TYPE} devices" FORCE)
|
||||
set(TESTS_${CORE_TYPE} FALSE CACHE BOOL "Build ULTs for ${CORE_TYPE} devices" FORCE)
|
||||
foreach(SKU_NAME ${ARGN})
|
||||
set(SUPPORT_${SKU_NAME} FALSE CACHE BOOL "Support ${SKU_NAME}" FORCE)
|
||||
set(TESTS_${SKU_NAME} FALSE CACHE BOOL "Build ULTs for ${SKU_NAME}" FORCE)
|
||||
endforeach()
|
||||
endmacro()
|
||||
|
||||
macro(ADD_PLATFORM_FOR_CORE_TYPE LIST_TYPE CORE_TYPE PLATFORM_NAME PLATFORM_TYPE)
|
||||
list(APPEND PLATFORM_TYPES ${PLATFORM_TYPE})
|
||||
list(REMOVE_DUPLICATES PLATFORM_TYPES)
|
||||
|
|
Loading…
Reference in New Issue