diff --git a/cmake/setup_platform_flags.cmake b/cmake/setup_platform_flags.cmake index 209e89041a..791edabd57 100644 --- a/cmake/setup_platform_flags.cmake +++ b/cmake/setup_platform_flags.cmake @@ -4,7 +4,7 @@ # SPDX-License-Identifier: MIT # -if(WIN32) +if(WIN32 AND NOT NEO_ALLOW_LEGACY_PLATFORMS_SUPPORT) DISABLE_FLAGS_FOR("GEN8" "BDW") DISABLE_FLAGS_FOR("GEN9" "SKL" "KBL" "BXT" "GLK" "CFL") DISABLE_FLAGS_FOR("GEN11" "ICLLP" "LKF" "EHL")