From e29b83934e7ceef9905f82bd6328cbc72db2278b Mon Sep 17 00:00:00 2001 From: Johan Lorensson Date: Tue, 15 Dec 2020 08:49:56 +0100 Subject: Implementation of full EventPipeDiagnosticServer C library CoreClr shim. (#45354) Break out build of eventpipe library into vm/eventing/eventpipe (both for C++ as well as C library). Introduce ability to build CoreClr with C++ or C version of EventPipe/DiagnosticServer library. Beneficial during transition to have both library useable, C++ library is still default, but new cmake feature FEATURE_PERFTRACING_C_LIB can be defined in order to build and use C library instead of C++ version. Due to restrictions around standard headers in CoreClr, moved out C library IPC PAL into debug_pal (where C++ library has its IPC PAL). This unfortunately came with some additional needed changes since library had dependencies against runtime, so needed to make PAL sources independent of majority of EventPipe library. Added same feature as for EventPipe/DiagnosticServer library, possible to build debug_pal with C or C++ IPC PAL sources. Complemented a couple of CoreClr types with NoThrow methods so they could be used in shim containers without need for try/catch, CQuickArray::PushNoThrow, SHash::AddNoThrow. Missing strtoull on non Windows, add PAL_strtoull into PAL (PAL already included UTF16 version of the same functionality). --- eng/native/configurepaths.cmake | 4 ---- 1 file changed, 4 deletions(-) (limited to 'eng/native/configurepaths.cmake') diff --git a/eng/native/configurepaths.cmake b/eng/native/configurepaths.cmake index e19b95aa040..b53553391c8 100644 --- a/eng/native/configurepaths.cmake +++ b/eng/native/configurepaths.cmake @@ -1,7 +1,3 @@ get_filename_component(CLR_REPO_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR}/../.. ABSOLUTE) set(CLR_ENG_NATIVE_DIR ${CMAKE_CURRENT_LIST_DIR}) get_filename_component(CLR_SRC_NATIVE_DIR ${CMAKE_CURRENT_LIST_DIR}/../../src/native ABSOLUTE) - -# TO_NATIVE_PATH so it uses backslashes in Windows to avoid getting error, -# as CLR_SRC_NATIVE_DIR is used to specify source files. -file (TO_NATIVE_PATH ${CLR_SRC_NATIVE_DIR} CLR_SRC_NATIVE_DIR) -- cgit v1.2.3