aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Davis <keith.davis@arm.com>2022-03-28 18:08:20 +0100
committerKeithARM <keith.davis@arm.com>2022-03-31 15:28:51 +0000
commitebbf1d4853afd2f96bca83bfb4c225a78f94ea93 (patch)
tree6272b225f3dcf6b9c592b103ca57be2e4dbd134c
parent502ab940713537f6512ad47bedf6b7856d3aeed9 (diff)
downloadarmnn-ebbf1d4853afd2f96bca83bfb4c225a78f94ea93.tar.gz
IVGCVSW-6815 Script Analysis of dependencies
* Add map file generation to ArmNN for debug mode Signed-off-by: Keith Davis <keith.davis@arm.com> Change-Id: I10ae17cd0e1d83a903eaebd95e2b06d0aa771f96
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b460b16829..1e996163f5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -442,6 +442,13 @@ add_library_ex(armnn SHARED ${armnn_sources})
target_compile_definitions(armnn PRIVATE "ARMNN_COMPILING_DLL")
+# Generate a map file for debug mode only
+if(CMAKE_BUILD_TYPE MATCHES debug)
+ set_property(TARGET armnn APPEND_STRING PROPERTY
+ LINK_FLAGS " -Wl,-Map=libarmnnMapFile.map")
+ message(STATUS "Linker will generate mapfile " )
+endif()
+
target_include_directories(armnn
PUBLIC
$<INSTALL_INTERFACE:include>