From 34774ed11e8ce940e498a232a0cfe4016f755804 Mon Sep 17 00:00:00 2001 From: ragmani Date: Wed, 8 Mar 2017 07:28:58 +0900 Subject: [PATCH] [x86/linux] Fix "Undefined Reference" error in CLR release build. (dotnet/coreclr#10000) Replace "IncCantStopCount()" and "DecCantStopCount()" functions with nothing(#define IncCantStopCount()) to call in methods of UTSemReadWrite on x86/Linux. Commit migrated from https://github.com/dotnet/coreclr/commit/47487b06044e7defc5ba66e096bb207eced03d9a --- src/coreclr/src/utilcode/utsem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/src/utilcode/utsem.cpp b/src/coreclr/src/utilcode/utsem.cpp index 087a3ae..4a76bbd 100644 --- a/src/coreclr/src/utilcode/utsem.cpp +++ b/src/coreclr/src/utilcode/utsem.cpp @@ -22,10 +22,10 @@ Revision History: #include "contract.h" // Consider replacing this with a #ifdef INTEROP_DEBUGGING -#if !defined(SELF_NO_HOST) && defined(_TARGET_X86_) +#if !defined(SELF_NO_HOST) && defined(_TARGET_X86_) && !defined(FEATURE_PAL) // For Interop debugging, the UTSemReadWrite class must inform the debugger // that this thread can't be suspended currently. See vm\util.hpp for the -// implementation of these methods. +// implementation of these methods. void IncCantStopCount(); void DecCantStopCount(); #else -- 2.7.4