-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[NativeAOT] Update ILCompiler paths to handle PublishAotUsingRuntimePack=true #85996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -126,26 +126,41 @@ The .NET Foundation licenses this file to you under the MIT license. | |||
|
|
||||
| <!-- The properties below need to be defined only after we've found the correct runtime package reference --> | ||||
| <Target Name="SetupProperties" DependsOnTargets="$(IlcSetupPropertiesDependsOn)" BeforeTargets="Publish"> | ||||
| <ItemGroup> | ||||
| <_NETCoreAppFrameworkReference Include="@(ResolvedFrameworkReference)" Condition="'%(ResolvedFrameworkReference.RuntimePackName)' == 'Microsoft.NETCore.App.Runtime.NativeAOT.$(RuntimeIdentifier)'" /> | ||||
| </ItemGroup> | ||||
|
|
||||
| <PropertyGroup> | ||||
| <!-- Define paths used in build targets to point to the runtime-specific ILCompiler implementation --> | ||||
| <IlcToolsPath Condition="'$(IlcToolsPath)' == ''">$(IlcHostPackagePath)\tools\</IlcToolsPath> | ||||
| <IlcSdkPath Condition="'$(IlcSdkPath)' == ''">$(RuntimePackagePath)\sdk\</IlcSdkPath> | ||||
| <IlcFrameworkPath Condition="'$(IlcFrameworkPath)' == ''">$(RuntimePackagePath)\framework\</IlcFrameworkPath> | ||||
| <IlcFrameworkNativePath Condition="'$(IlcFrameworkNativePath)' == ''">$(RuntimePackagePath)\framework\</IlcFrameworkNativePath> | ||||
| <IlcFrameworkPath Condition="'$(IlcFrameworkPath)' == '' and '$(PublishAotUsingRuntimePack)' != 'true'">$(RuntimePackagePath)\framework\</IlcFrameworkPath> | ||||
| <_NETCoreAppRuntimePackPath>%(_NETCoreAppFrameworkReference.RuntimePackPath)/runtimes/$(RuntimeIdentifier)/</_NETCoreAppRuntimePackPath> | ||||
| <IlcFrameworkNativePath Condition="'$(IlcFrameworkNativePath)' == '' and '$(PublishAotUsingRuntimePack)' == 'true'">$(_NETCoreAppRuntimePackPath)\native\</IlcFrameworkNativePath> | ||||
| <IlcFrameworkNativePath Condition="'$(IlcFrameworkNativePath)' == '' and '$(PublishAotUsingRuntimePack)' != 'true'">$(RuntimePackagePath)\framework\</IlcFrameworkNativePath> | ||||
| <IlcFrameworkSdkPath Condition="'$(IlcFrameworkSdkPath)' == '' and '$(PublishAotUsingRuntimePack)' == 'true'">$(IlcFrameworkNativePath)</IlcFrameworkSdkPath> | ||||
| <IlcFrameworkSdkPath Condition="'$(IlcFrameworkSdkPath)' == '' and '$(PublishAotUsingRuntimePack)' != 'true'">$(IlcSdkPath)</IlcFrameworkSdkPath> | ||||
| <IlcMibcPath Condition="'$(IlcMibcPath)' == ''">$(RuntimePackagePath)\mibc\</IlcMibcPath> | ||||
| </PropertyGroup> | ||||
|
|
||||
| <ItemGroup> | ||||
| <PrivateSdkAssemblies Include="$(IlcSdkPath)*.dll" /> | ||||
| <ItemGroup Condition="'$(PublishAotUsingRuntimePack)' == 'true'"> | ||||
| <PrivateSdkAssemblies Include="$(IlcFrameworkSdkPath)*.dll"/> | ||||
| <FrameworkAssemblies Include="@(RuntimePackAsset)" Condition="'%(Extension)' == '.dll'" /> | ||||
| <DefaultFrameworkAssemblies Include="@(FrameworkAssemblies)" /> | ||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why aren't There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not exactly intuitive but There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Sorry, I got confused with this.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
In the case of In the case of I was just trying to clarify that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can just rewrite it as to make it clearer: - <FrameworkAssemblies Include="@(RuntimePackAsset)" Condition="'%(Extension)' == '.dll'" />
- <DefaultFrameworkAssemblies Include="@(FrameworkAssemblies)" />
+ <DefaultFrameworkAssemblies Include="@(RuntimePackAsset)" Condition="'%(Extension)' == '.dll'" />There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you very much for the clarification! Regarding your last comment:
Would it make sense to keep having a single |
||||
| </ItemGroup> | ||||
|
|
||||
| <ItemGroup Condition="'$(PublishAotUsingRuntimePack)' != 'true'"> | ||||
| <PrivateSdkAssemblies Include="$(IlcFrameworkSdkPath)*.dll"/> | ||||
| <!-- Exclude unmanaged dlls --> | ||||
| <FrameworkAssemblies Include="$(IlcFrameworkPath)*.dll" Exclude="$(IlcFrameworkPath)*.Native.dll;$(IlcFrameworkPath)msquic.dll" /> | ||||
|
|
||||
| <MibcFile Include="$(IlcMibcPath)*.mibc" Condition="'$(IlcPgoOptimize)' == 'true'" /> | ||||
|
|
||||
| <DefaultFrameworkAssemblies Include="@(FrameworkAssemblies)" /> | ||||
| <DefaultFrameworkAssemblies Include="@(PrivateSdkAssemblies)" /> | ||||
| </ItemGroup> | ||||
|
|
||||
| <ItemGroup> | ||||
| <MibcFile Include="$(IlcMibcPath)*.mibc" Condition="'$(IlcPgoOptimize)' == 'true'" /> | ||||
| </ItemGroup> | ||||
| </Target> | ||||
|
|
||||
| <Target Name="ComputeIlcCompileInputs" DependsOnTargets="$(IlcDynamicBuildPropertyDependencies)" BeforeTargets="Publish"> | ||||
|
|
||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to name this
IlcPrivateSdkPathsince that's wherePrivateSdkAssembliescome from?