summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRama <ramarag@microsoft.com>2015-10-12 16:56:33 -0700
committerRama <ramarag@microsoft.com>2015-10-12 17:39:17 -0700
commita8a1b6500a316f388b12b8299608d8adaa630b89 (patch)
tree6fe18bd14262343068f96008f4da5a81e428a5f6 /src
parent1f43da21666a3310b478917e0e1d888913dfcca3 (diff)
downloadcoreclr-a8a1b6500a316f388b12b8299608d8adaa630b89.tar.gz
coreclr-a8a1b6500a316f388b12b8299608d8adaa630b89.tar.bz2
coreclr-a8a1b6500a316f388b12b8299608d8adaa630b89.zip
Add checks for liblttng-ust-dev at build time
Diffstat (limited to 'src')
-rw-r--r--src/pal/src/configure.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pal/src/configure.cmake b/src/pal/src/configure.cmake
index 131edce464..c89fb27a6c 100644
--- a/src/pal/src/configure.cmake
+++ b/src/pal/src/configure.cmake
@@ -27,6 +27,7 @@ check_include_files(pthread_np.h HAVE_PTHREAD_NP_H)
check_include_files(sys/lwp.h HAVE_SYS_LWP_H)
check_include_files(libunwind.h HAVE_LIBUNWIND_H)
check_include_files(runetype.h HAVE_RUNETYPE_H)
+check_include_files(lttng/tracepoint.h HAVE_LTTNG_TRACEPOINT_H)
check_function_exists(kqueue HAVE_KQUEUE)
check_function_exists(getpwuid_r HAVE_GETPWUID_R)
@@ -900,6 +901,11 @@ else() # Anything else is Linux
unset(HAVE_LIBUNWIND_H CACHE)
message(FATAL_ERROR "Cannot find libunwind. Try installing libunwind8 and libunwind8-dev (or the appropriate packages for your platform)")
endif()
+ if(NOT HAVE_LTTNG_TRACEPOINT_H)
+ unset(HAVE_LTTNG_TRACEPOINT_H CACHE)
+ message(FATAL_ERROR "Cannot find liblttng-ust-dev. Try installing liblttng-ust-dev (or the appropriate packages for your platform)")
+ endif()
+
set(DEADLOCK_WHEN_THREAD_IS_SUSPENDED_WHILE_BLOCKED_ON_MUTEX 0)
set(PAL_PTRACE "ptrace((cmd), (pid), (void*)(addr), (data))")
set(PAL_PT_ATTACH PTRACE_ATTACH)