summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2015-06-09 13:28:50 -0700
committerJan Kotas <jkotas@microsoft.com>2015-06-09 13:28:50 -0700
commitec397f78139a1c882d3d7c088afd70399f30cc87 (patch)
tree67ee8d6fbdc71955a37ff40091c4a289f5fd4c27 /src
parent11cacdc45583ae60bf5a3e69cd0f86b03020423c (diff)
parentfec2c9c804023b133f5cb17b0a8a045f7a832144 (diff)
downloadcoreclr-ec397f78139a1c882d3d7c088afd70399f30cc87.tar.gz
coreclr-ec397f78139a1c882d3d7c088afd70399f30cc87.tar.bz2
coreclr-ec397f78139a1c882d3d7c088afd70399f30cc87.zip
Merge pull request #1121 from erozenfeld/CrossgenFix
Fix crossgen so that it doesn't attempt to get clr callbacks.
Diffstat (limited to 'src')
-rw-r--r--src/zap/zapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zap/zapper.cpp b/src/zap/zapper.cpp
index cdbc225f8e..b0a5aca8bd 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)