Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ include(${CLR_ENG_NATIVE_DIR}/configurecompiler.cmake)
include_directories("${CLR_SRC_NATIVE_DIR}")

# Add this subdir. We install the headers for the jit.
add_subdirectory(../coreclr/pal/prebuilt/inc ../coreclr/pal/prebuilt/inc)
add_subdirectory(${CLR_REPO_ROOT_DIR}/src/coreclr/pal/prebuilt/inc ${CLR_ARTIFACTS_OBJ_DIR}/coreclr/pal/prebuilt/inc)

set(INC_PLATFORM_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Common/Platform)
if (CLR_CMAKE_TARGET_WIN32)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#pragma once

#include <assert.h>
#include "../profiler.h"

class EventPipeWritingProfiler : public Profiler
Expand Down Expand Up @@ -37,7 +38,7 @@ class EventPipeWritingProfiler : public Profiler
template<typename T>
static void WriteToBuffer(BYTE *pBuffer, size_t bufferLength, size_t *pOffset, T value)
{
_ASSERTE(bufferLength >= (*pOffset + sizeof(T)));
assert(bufferLength >= (*pOffset + sizeof(T)));

*(T*)(pBuffer + *pOffset) = value;
*pOffset += sizeof(T);
Expand Down