summaryrefslogtreecommitdiff
path: root/clrdefinitions.cmake
diff options
context:
space:
mode:
authorSung Yoon Whang <suwhang@microsoft.com>2018-07-22 20:56:42 -0700
committerGitHub <noreply@github.com>2018-07-22 20:56:42 -0700
commitcc96914f80b6873c555d0ed377042537ef99f1af (patch)
tree026d241960b09179fd5132861763261e1f43f8d4 /clrdefinitions.cmake
parent45f1ec9c4d91733c76868870ff85f2beafabdd39 (diff)
downloadcoreclr-cc96914f80b6873c555d0ed377042537ef99f1af.tar.gz
coreclr-cc96914f80b6873c555d0ed377042537ef99f1af.tar.bz2
coreclr-cc96914f80b6873c555d0ed377042537ef99f1af.zip
Enable profiler attach on Windows (#18762)
* try building clr with prof attach enabled * define ICLRProfiling interface * profattach.dll now builds with CreateCLRProfiling export * remove try catch * basic attach working now * build with profiler attach feature only on win * Fix linux build * cleanup * more cleanup * more cleanup * remove profattach dll * remove useless unix exports in mscorwks * remove profattach from dll cmakelist * Add back ifdef * cleanup * change LINUX to UNIX in clrdefinitions * Fix broken checked builds * Remove CLRProfilingClassFactory and metadata.h include from profattach.cpp * remove useless extern C * Add this back in * adding ifndef DACCESS_COMPILE * Try building with FWD define ICLRProfiling interface * Test commit - removing additional definition from metahost.h to see if this will pass CI runs * Address pr comments
Diffstat (limited to 'clrdefinitions.cmake')
-rw-r--r--clrdefinitions.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/clrdefinitions.cmake b/clrdefinitions.cmake
index ab77f70236..4f12e4b793 100644
--- a/clrdefinitions.cmake
+++ b/clrdefinitions.cmake
@@ -182,6 +182,10 @@ if(CLR_CMAKE_PLATFORM_LINUX)
endif(CLR_CMAKE_PLATFORM_LINUX)
add_definitions(-DFEATURE_PREJIT)
+if(NOT CLR_CMAKE_PLATFORM_UNIX)
+ add_definitions(-DFEATURE_PROFAPI_ATTACH_DETACH)
+endif(NOT CLR_CMAKE_PLATFORM_UNIX)
+
add_definitions(-DFEATURE_READYTORUN)
set(FEATURE_READYTORUN 1)