Revert "refactor: remove platform type string"

This reverts commit 58b443ecf1.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2023-01-04 10:18:42 +01:00
committed by Compute-Runtime-Automation
parent b7ee3486d9
commit 5a6d358166
46 changed files with 497 additions and 269 deletions

View File

@@ -200,8 +200,11 @@ macro(DISABLE_FLAGS_FOR CORE_TYPE)
endmacro()
macro(ADD_PLATFORM_FOR_CORE_TYPE LIST_TYPE CORE_TYPE PLATFORM_NAME)
list(APPEND PLATFORM_TYPES ${PLATFORM_NAME})
list(REMOVE_DUPLICATES PLATFORM_TYPES)
ADD_ITEM_FOR_CORE_TYPE("PLATFORMS" ${LIST_TYPE} ${CORE_TYPE} ${PLATFORM_NAME})
set(${CORE_TYPE}_HAS_${PLATFORM_NAME} TRUE)
set(${PLATFORM_NAME}_IS_${PLATFORM_NAME} TRUE)
if(NOT DEFAULT_${LIST_TYPE}_${CORE_TYPE}_${PLATFORM_NAME}_PLATFORM)
string(TOLOWER ${PLATFORM_NAME} DEFAULT_${LIST_TYPE}_${CORE_TYPE}_${PLATFORM_NAME}_PLATFORM)
endif()