perfmon: fix xtensa_perfmon build target

This commit is contained in:
wuzhenghui 2022-07-13 14:42:07 +08:00 committed by Song Ruo Jing
parent 82f2ad9b6d
commit d6d44b4781

View File

@ -1,5 +1,6 @@
idf_build_get_property(target IDF_TARGET)
if(${target} STREQUAL "esp32c3" OR ${target} STREQUAL "esp32h2" OR ${target} STREQUAL "esp32c2")
idf_build_get_property(arch IDF_TARGET_ARCH)
if(NOT "${arch}" STREQUAL "xtensa")
return()
endif()