diff options
author | Brian Robbins <brianrob@microsoft.com> | 2015-11-09 17:50:56 -0800 |
---|---|---|
committer | Brian Robbins <brianrob@microsoft.com> | 2015-11-12 13:04:47 -0800 |
commit | 3801b5493e9d4b8837ceec03f49707656877fff1 (patch) | |
tree | 23828a8ede5c24422479fc062aa2800b2ffa4418 /crossgen.cmake | |
parent | 128546aed70f8f24efebd50b0f6c358f41ff9756 (diff) | |
download | coreclr-3801b5493e9d4b8837ceec03f49707656877fff1.tar.gz coreclr-3801b5493e9d4b8837ceec03f49707656877fff1.tar.bz2 coreclr-3801b5493e9d4b8837ceec03f49707656877fff1.zip |
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.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crossgen.cmake b/crossgen.cmake index d377044302..8845bb5f6e 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) |