diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1f8c6505343..d31679c7b80 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -98,6 +98,7 @@ stages: targetArch: arm64 targetPlatform: arm64ec analyzeBuild: true + buildBenchmarks: true numShards: 1 skipTesting: true diff --git a/benchmarks/CMakeLists.txt b/benchmarks/CMakeLists.txt index 338f9c6a239..719d7deec21 100644 --- a/benchmarks/CMakeLists.txt +++ b/benchmarks/CMakeLists.txt @@ -27,6 +27,11 @@ if(DEFINED STL_BINARY_DIR) set(VCLIBS_I386_OR_AMD64 "arm") elseif(VCLIBS_TARGET_ARCHITECTURE STREQUAL "arm64") set(VCLIBS_I386_OR_AMD64 "arm64") + elseif(VCLIBS_TARGET_ARCHITECTURE STREQUAL "arm64ec") + set(VCLIBS_I386_OR_AMD64 "arm64ec") + add_compile_options($<$:/arm64EC>) + add_link_options("/machine:arm64ec") + set(CMAKE_STATIC_LINKER_FLAGS "/machine:arm64ec") else() message(FATAL_ERROR "Could not determine target architecture: VCLIBS_TARGET_ARCHITECTURE: ${VCLIBS_TARGET_ARCHITECTURE}") endif()