Switch the order of AOT SDK and framework assemblies (#88703)
authorSingleAccretion <62474226+SingleAccretion@users.noreply.github.com>
Wed, 12 Jul 2023 02:12:47 +0000 (05:12 +0300)
committerGitHub <noreply@github.com>
Wed, 12 Jul 2023 02:12:47 +0000 (11:12 +0900)
commit546429639d35977305da69fe2c5d3c856b61123d
treea905a21f2ee1822534a94b7c15f7a39b0d218798
parent24150b3a6d501bb41105e47adb09eaad61bc5e2c
Switch the order of AOT SDK and framework assemblies (#88703)

When you have built a CoreCLR CoreLib, it "poisons" the build
s.t. running libraries tests with NAOT becomes impossible.

This is because $(IlcFrameworkPath) draws from a shared framework
that contains the CoreCLR CoreLib, while it should use the CoreLib
from the AOT SDK.

This targeted change changes the order in which these two assemblies
get passed to ILC and allows one to use "/p:TestNativeAot=true"
without additional workarounds.
src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets