aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/helpers.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/helpers.cmake b/cmake/helpers.cmake
index 8676cd3..21d3a24 100644
--- a/cmake/helpers.cmake
+++ b/cmake/helpers.cmake
@@ -90,6 +90,12 @@ function(ethosu_add_executable target)
ethosu_eval_link_options(${target})
+ if (CMAKE_CXX_COMPILER_ID STREQUAL "ARMClang")
+ target_link_options(${target} PRIVATE --map --list=${target}.map)
+ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+ target_link_options(${target} PRIVATE -Xlinker -Map=${target}.map)
+ endif()
+
ethosu_add_binaries(${target})
endfunction()