From: Eugene Rozenfeld Date: Tue, 9 Jun 2015 18:45:12 +0000 (-0700) Subject: Fix crossgen so that it doesn't attempt to get clr callbacks. X-Git-Tag: accepted/tizen/base/20180629.140029~6618^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fec2c9c804023b133f5cb17b0a8a045f7a832144;p=platform%2Fupstream%2Fcoreclr.git Fix crossgen so that it doesn't attempt to get clr callbacks. This was preventing llilc from being used as an ngen jit. The fix is from Jan Kotas. --- diff --git a/src/zap/zapper.cpp b/src/zap/zapper.cpp index cdbc225..b0a5aca 100644 --- a/src/zap/zapper.cpp +++ b/src/zap/zapper.cpp @@ -761,7 +761,7 @@ void Zapper::LoadAndInitializeJITForNgen(LPCWSTR pwzJitName, OUT HINSTANCE* phJi ThrowLastError(); } -#if defined(FEATURE_CORECLR) || !defined(SELF_NO_HOST) || defined(DACCESS_COMPILE) +#if (defined(FEATURE_CORECLR) || !defined(SELF_NO_HOST)) && !defined(CROSSGEN_COMPILE) typedef void (__stdcall* pSxsJitStartup) (CoreClrCallbacks const & cccallbacks); pSxsJitStartup sxsJitStartupFn = (pSxsJitStartup) GetProcAddress(*phJit, "sxsJitStartup"); if (sxsJitStartupFn == NULL)