Modify "crossgen -createpdb" to skip loading clrjit.dll (dotnet/coreclr#6607)
authorJohn Chen (CLR) <jochen@microsoft.com>
Fri, 5 Aug 2016 23:08:18 +0000 (16:08 -0700)
committerJohn Chen (CLR) <jochen@microsoft.com>
Mon, 8 Aug 2016 20:36:34 +0000 (13:36 -0700)
commit8f03f39642c7545a193c841a98e1ca2eba6714c0
treeba19e469ccb1fa29fe726ff0787284a5769a25df
parentbbe53e709875db679fa5dc1e6db4d06457f55cab
Modify "crossgen -createpdb" to skip loading clrjit.dll (dotnet/coreclr#6607)

The -JITPath option doesn't work properly when CrossGen is used to
create a PDB file (issue dotnet/coreclr#6607). Since clrjit.dll isn't really
needed for creating PDB files, the issue is fixed by modifying
CrossGen to skip loading clrjit.dll when -createpdb option is given.

Also following suggestion from issue dotnet/coreclr#6607, added a new switch
-diasymreaderPath to CrossGen, to allow loading diasymreader.dll
from an alternative path.

Commit migrated from https://github.com/dotnet/coreclr/commit/21df26e038c4039150a7978188ecd0b6a5f23d2b
src/coreclr/src/inc/corcompile.h
src/coreclr/src/inc/zapper.h
src/coreclr/src/tools/crossgen/crossgen.cpp
src/coreclr/src/vm/compile.cpp
src/coreclr/src/zap/zapper.cpp