summaryrefslogtreecommitdiff
path: root/src/scripts
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2016-01-30 17:33:29 -0800
committerJan Kotas <jkotas@microsoft.com>2016-01-31 03:08:02 -0800
commitdd9c20ca70d650083e57802e5d1e9bfde799f9b9 (patch)
tree448be483899a9905eab796d7270d126f5264e543 /src/scripts
parentafc23feec88c928cfce19216b781fc460f955b1b (diff)
downloadcoreclr-dd9c20ca70d650083e57802e5d1e9bfde799f9b9.tar.gz
coreclr-dd9c20ca70d650083e57802e5d1e9bfde799f9b9.tar.bz2
coreclr-dd9c20ca70d650083e57802e5d1e9bfde799f9b9.zip
Introduce central location for turning FEATURE_EVENT_TRACE on/off
Turn FEATURE_EVENT_TRACE on for x64 Linux only. aarch64 and arm do not have working lttng in their ubuntu/debian repos. We can expand to other platforms in the future as they become supported.
Diffstat (limited to 'src/scripts')
-rw-r--r--src/scripts/genXplatEventing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/genXplatEventing.py b/src/scripts/genXplatEventing.py
index f56e45b474..b844ec19b4 100644
--- a/src/scripts/genXplatEventing.py
+++ b/src/scripts/genXplatEventing.py
@@ -495,7 +495,7 @@ def generateSanityTest(sClrEtwAllMan,testDir):
)
set(EVENT_PROVIDER_DEPENDENCIES "")
set(EVENT_PROVIDER_LINKER_OTPTIONS "")
- if(CMAKE_SYSTEM_NAME STREQUAL Linux)
+ if(FEATURE_EVENT_TRACE)
add_definitions(-DFEATURE_EVENT_TRACE=1)
list(APPEND EVENT_PROVIDER_DEPENDENCIES
coreclrtraceptprovider
@@ -505,7 +505,7 @@ def generateSanityTest(sClrEtwAllMan,testDir):
${EVENT_PROVIDER_DEPENDENCIES}
)
- endif(CMAKE_SYSTEM_NAME STREQUAL Linux)
+ endif(FEATURE_EVENT_TRACE)
add_dependencies(eventprovidertest ${EVENT_PROVIDER_DEPENDENCIES} coreclrpal)
target_link_libraries(eventprovidertest