Add tracepointprovider.cpp directly to PAL instead of to a separate tracepointprovide...
authorBrian Robbins <brianrob@microsoft.com>
Tue, 6 Mar 2018 10:51:22 +0000 (02:51 -0800)
committerJan Vorlicek <janvorli@microsoft.com>
Tue, 6 Mar 2018 10:51:22 +0000 (11:51 +0100)
src/dlls/mscoree/coreclr/CMakeLists.txt
src/pal/src/CMakeLists.txt

index 8043f77..fb5cc90 100644 (file)
@@ -139,11 +139,6 @@ if(FEATURE_EVENT_TRACE)
             eventprovider # On Windows this library contains only macros
         )
     endif(CLR_CMAKE_PLATFORM_UNIX)
-    if(CLR_CMAKE_PLATFORM_LINUX)
-        list(APPEND CORECLR_LIBRARIES
-            tracepointprovider
-        )
-    endif(CLR_CMAKE_PLATFORM_LINUX)
 endif(FEATURE_EVENT_TRACE)
 
 target_link_libraries(coreclr ${CORECLR_LIBRARIES})
index 0285d88..56df33f 100644 (file)
@@ -179,6 +179,7 @@ set(SOURCES
   misc/strutil.cpp
   misc/sysinfo.cpp
   misc/time.cpp
+  misc/tracepointprovider.cpp
   misc/utils.cpp
   numa/numa.cpp
   objmgr/palobjbase.cpp
@@ -238,15 +239,6 @@ add_library(coreclrpal
   ${PLATFORM_SOURCES}
 )
 
-# This builds in functionality to load LTTng tracepoints at runtime
-# Needed when using LTTng to support event tracing on Linux
-if(CLR_CMAKE_PLATFORM_LINUX)
-    add_library(tracepointprovider
-      STATIC
-      misc/tracepointprovider.cpp
-    )
-endif(CLR_CMAKE_PLATFORM_LINUX)
-
 if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
   find_library(COREFOUNDATION CoreFoundation)
   find_library(CORESERVICES CoreServices)