-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add --ilcsdkpath #622
Add --ilcsdkpath #622
Conversation
…d of ILCompiler.SDK
@piotrpMSFT @brthor @Sridhar-MS @mmitche Are you aware of this failure?
|
@dotnet-bot test OSX Release Build |
1 similar comment
@dotnet-bot test OSX Release Build |
Release build now failed with the following:
|
@gkhanna79, why is --ilcsdkpath available to the customer? We should not make CoreRT build system have these custom hooks and This is how it should work. dotnet compiler --native To enable cross compilation, we need to change our package layout (eventually with content folders) but for now, lay them out like native/x64/bootstrapper.lib and native/x64_arm64/bootstrapper.lib etc. When publish is issued with the latest CLI (with @brthor 's changes to native folders in publish) in the CoreRT repo, we should end up with the right folder structure. Then we should push these packages with minor bumped up and make corresponding CLI changes to pick the new package layout based on the build arch. |
@schellap You are right that we can live without these switches (both of them) and always copy everything into the right fixed folder structure, but it is not very convenient to do so. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
CoreRT build system is not updated/modified to consume them. Infact, the default semantic is to always have ILCPath and ILCSdkPath to be the same. However, an explicit switch enables the customization at CLI level. If we make ILC.exe handle --ilcsdkpath:
This switch is not just for cross-compilation but also for same architecture compilation when there is need to target a custom build of ILCompiler.SDK. |
I am not saying ILC should handle the SDK path. I'm saying instead of adding an option to CLI put the right stuff in place where CLI looks using I am fine if it is for convenience or temporary reasons. My concern was that if we tested (i.e., updated our build/test) with this extra option, we are not testing how we ship and how CLI gets things in the right place using |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This is not intuitive or straightforward when you want to use the ILC that comes with CLI and want to use a SDK that you just built.
Once the above change is enabled, --ilcsdkpath will, behind the scenese, simply point to it. It can serve both default and custom scenarios.
We are not explicitly specifying a value for this - it is taking the value of ILCPath (and will take path to the subfolders when they light up). Effectively, we are (and will be) testing what we are shipping. |
I agree with this one being difficult right now and I see that we might want to be able to test in this mode for servicing scenarios. The changes LGTM. |
Support consuming custom build of ILCompiler.SDK