Fix crossgenning of framework libraries on Windows (#747)
authorTomáš Rylek <trylek@microsoft.com>
Sat, 14 Dec 2019 19:39:04 +0000 (20:39 +0100)
committerGitHub <noreply@github.com>
Sat, 14 Dec 2019 19:39:04 +0000 (20:39 +0100)
commitac4b5b6c380e143fea83d19e70477468391a6c8b
tree89d53a60d07790b749f323e00de9845011d51a37
parent6a620e62cb148dafd36266b8017f914e10b1365d
Fix crossgenning of framework libraries on Windows (#747)

1) Fix crossgenning of framework libraries on Windows;

2) Enable crossgenning S.P.C with CG2, remove obsolete CoreCLR logic;

3) Fix framework build with legacy Crossgen due to a typo in my change;

4) The ordering of steps in build-test was incorrect - we need to
patch CORE_ROOT with live-live libraries build before Crossgenning
the framework therein, otherwise weird things happen (and the result
is incorrect in any case).

5) Removed misplaced >nul 2>nul - we agreed with JanV that it's
better to not throw diagnostic information away.

6) Applied JanV's suggestion for improvement - using a tighter filter
for reference assemblies - Microsoft.*.dll / System.*.dll /
mscorlib.dll instead of just *.dll that ended up picking tons of
garbage like clrjit.dll and the various Win32 API contracts, both
in the build-test script and in CLRTest.Crossgen.targets.

Thanks

Tomas
src/coreclr/build-test.cmd
src/coreclr/build-test.sh
src/coreclr/tests/src/CLRTest.CrossGen.targets