summaryrefslogtreecommitdiff
path: root/crossgen.cmake
diff options
context:
space:
mode:
authorBrian Robbins <brianrob@microsoft.com>2015-11-10 01:50:56 (GMT)
committerBrian Robbins <brianrob@microsoft.com>2015-11-12 21:04:47 (GMT)
commit3801b5493e9d4b8837ceec03f49707656877fff1 (patch)
tree23828a8ede5c24422479fc062aa2800b2ffa4418 /crossgen.cmake
parent128546aed70f8f24efebd50b0f6c358f41ff9756 (diff)
downloadcoreclr-3801b5493e9d4b8837ceec03f49707656877fff1.zip
coreclr-3801b5493e9d4b8837ceec03f49707656877fff1.tar.gz
coreclr-3801b5493e9d4b8837ceec03f49707656877fff1.tar.bz2
Enable offline generation of text-based symbol tables for native images. This is needed in order to profile applications on Linux using perf_event.
This change also modifies the runtime to emit a perfmap entry when a native image is loaded so that offline trace processing tools can identify when a perfmap file for a native image is needed and generate it.
Diffstat (limited to 'crossgen.cmake')
-rw-r--r--crossgen.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/crossgen.cmake b/crossgen.cmake
index d377044..8845bb5 100644
--- a/crossgen.cmake
+++ b/crossgen.cmake
@@ -21,3 +21,7 @@ if(WIN32)
add_definitions(-MT)
add_definitions(-DFEATURE_READYTORUN_COMPILER)
endif(WIN32)
+
+if(CLR_CMAKE_PLATFORM_LINUX)
+ add_definitions(-DFEATURE_PERFMAP)
+endif(CLR_CMAKE_PLATFORM_LINUX)