summaryrefslogtreecommitdiff
path: root/clrfeatures.cmake
diff options
context:
space:
mode:
authorJonghyun Park <parjong@gmail.com>2017-04-17 18:21:45 (GMT)
committerDan Moseley <danmose@microsoft.com>2017-04-17 18:21:45 (GMT)
commit6097e8a7632ab2790d02302e6f722e168557a50f (patch)
tree8ebd6ce81a48c12e1eff260205acec5196c4025c /clrfeatures.cmake
parentbd9cd4206ef5abb9b0a4741fc7d970b40bfed44b (diff)
downloadcoreclr-6097e8a7632ab2790d02302e6f722e168557a50f.zip
coreclr-6097e8a7632ab2790d02302e6f722e168557a50f.tar.gz
coreclr-6097e8a7632ab2790d02302e6f722e168557a50f.tar.bz2
Support FEATURE_EVENT_TRACE override (#10961)
Diffstat (limited to 'clrfeatures.cmake')
-rw-r--r--clrfeatures.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/clrfeatures.cmake b/clrfeatures.cmake
new file mode 100644
index 0000000..0cbd585
--- /dev/null
+++ b/clrfeatures.cmake
@@ -0,0 +1,17 @@
+if(CLR_CMAKE_TARGET_TIZEN_LINUX)
+ set(FEATURE_EVENT_TRACE 0)
+endif()
+
+if(NOT DEFINED FEATURE_EVENT_TRACE)
+ if (WIN32)
+ set(FEATURE_EVENT_TRACE 1)
+ endif()
+
+ if(CLR_CMAKE_PLATFORM_LINUX)
+ if(CLR_CMAKE_TARGET_ARCH_AMD64)
+ set(FEATURE_EVENT_TRACE 1)
+ elseif(CLR_CMAKE_TARGET_ARCH_ARM)
+ set(FEATURE_EVENT_TRACE 1)
+ endif()
+ endif(CLR_CMAKE_PLATFORM_LINUX)
+endif(NOT DEFINED FEATURE_EVENT_TRACE)