From 5c6abe0694a33c245680ec48d36e1fc031798250 Mon Sep 17 00:00:00 2001 From: Manu Date: Mon, 28 Mar 2016 10:47:28 +0900 Subject: Enable XplatEventLogger on all non-Windows platforms Because on non-Windows platform, we assume event tracing, we also requires it to compile native code for non-Windows platform. Event tracing is only enabled on AMD64 devices for now on Unix platforms. --- src/vm/eventtracepriv.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/vm/eventtracepriv.h b/src/vm/eventtracepriv.h index 6b2a266728..0689665851 100644 --- a/src/vm/eventtracepriv.h +++ b/src/vm/eventtracepriv.h @@ -412,9 +412,13 @@ private: class XplatEventSourceLogger { public: +#ifdef FEATURE_EVENT_TRACE static void QCALLTYPE LogEventSource(__in_z int eventID, __in_z LPCWSTR eventName, __in_z LPCWSTR eventSourceName, __in_z LPCWSTR payload); - static BOOL QCALLTYPE IsEventSourceLoggingEnabled(); +#else + static void QCALLTYPE LogEventSource(__in_z int eventID, __in_z LPCWSTR eventName, __in_z LPCWSTR eventSourceName, __in_z LPCWSTR payload) {} + static BOOL QCALLTYPE IsEventSourceLoggingEnabled() { return false; } +#endif }; #endif //defined(FEATURE_EVENTSOURCE_XPLAT) -- cgit v1.2.3