-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[wasm] Integrate naot-llvm into workload manifest #101801
Closed
Closed
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
9f4447b
Disable mono workload. Override ILCompiler packs. Add restore feed
maraf 5904423
Extract the version to a property
maraf c7be3fa
Don't override TargetingPackVersion
maraf 051deab
Add OverrideImportRuntimeIlcPackageTarget
maraf f260eea
Add WASI WBT
maraf 88be64a
Update package version
maraf 08a98d9
Run with wasmtime
maraf d8f8bed
Wasmtime normalizes exit code. Returning 0 seems like a good thing to do
maraf 8ec46fa
Run the wasi test on CI
maraf 3a8808a
Explicitly disable browser workload to prevent enabling it in emscrip…
maraf 30824f6
Browser WBT
maraf 7946571
Merge remote-tracking branch 'upstream/main' into WasmNaotLlvmSdk
maraf 4c3c351
Run browser WBT on CI
maraf b51f621
Run browser WBT on CI (fix damage)
maraf 7efc56b
Linux is not supported
maraf 7bfead3
Run browser WBT on CI (fix class name)
maraf a13f2a0
Linux is not supported
maraf 065a103
Expect fail on non-Windows
maraf 9b080bb
DEBUG missing libLLVM.dll
maraf 0096144
DEBUG package reference style project
maraf c72e9f4
DEBUG package reference style project (fix)
maraf 93e54b0
DEBUG package reference style project (fix trimmer)
maraf 255ec70
DEBUG: OS info
maraf b8fb22a
DEBUG: CoreCLR tracing
maraf 2aa832f
Update NativeAOT-LLVM version
maraf 4e94ebd
Merge branch 'main' into WasmNaotLlvmSdk
maraf 5bd7bf2
Fix merge damage
maraf 4ac36fd
Update LLVM ILC version
maraf 5091f1b
Cleanup after CI debugging
maraf 5c684e6
Merge branch 'main' into WasmNaotLlvmSdk
maraf 9841eb0
Merge branch 'main' into WasmNaotLlvmSdk
maraf b797fad
Feedback
maraf 1a21a15
Update version
maraf 2c4c818
Run only NativeAOT WBT
maraf 28ebf99
Merge remote-tracking branch 'upstream/main' into WasmNaotLlvmSdk
maraf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. --> | ||
<Project> | ||
<PropertyGroup> | ||
<_IsUsingNativeAOT Condition="'$(PublishAot)' == 'true'">true</_IsUsingNativeAOT> | ||
<_RuntimePackInWorkloadVersionCurrent>${PackageVersion}</_RuntimePackInWorkloadVersionCurrent> | ||
<_RuntimePackInWorkloadVersion8>${PackageVersionNet8}</_RuntimePackInWorkloadVersion8> | ||
<_RuntimePackInWorkloadVersion7>${PackageVersionNet7}</_RuntimePackInWorkloadVersion7> | ||
|
@@ -65,6 +66,24 @@ | |
<UsingBrowserRuntimeWorkload Condition="'$(UsingBrowserRuntimeWorkload)' == ''">$(WasmNativeWorkloadAvailable)</UsingBrowserRuntimeWorkload> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(_IsUsingNativeAOT)' == 'true'"> | ||
<UsingBrowserRuntimeWorkload Condition="'$(RuntimeIdentifier)' == 'browser-wasm'">false</UsingBrowserRuntimeWorkload> | ||
<UsingWasiRuntimeWorkload Condition="'$(RuntimeIdentifier)' == 'wasi-wasm'">false</UsingWasiRuntimeWorkload> | ||
<UseAppHost>false</UseAppHost> | ||
<WasmNativeAOTLLVMILCompilerVersion Condition="'$(WasmNativeAOTLLVMILCompilerVersion)' == ''">9.0.0-alpha.1.24173.1</WasmNativeAOTLLVMILCompilerVersion> | ||
maraf marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<RestoreAdditionalProjectSources>$(RestoreAdditionalProjectSources);https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json</RestoreAdditionalProjectSources> | ||
maraf marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</PropertyGroup> | ||
|
||
<ItemGroup Condition="'$(_IsUsingNativeAOT)' == 'true' and ('$(RuntimeIdentifier)' == 'browser-wasm' or '$(RuntimeIdentifier)' == 'wasi-wasm')"> | ||
<KnownILCompilerPack Remove="Microsoft.DotNet.ILCompiler" /> | ||
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. This is me being nit-picky - I would move this down near where we set |
||
<KnownILCompilerPack Include="Microsoft.DotNet.ILCompiler.LLVM" | ||
TargetFramework="${NetCoreAppCurrent}" | ||
ILCompilerPackNamePattern="runtime.**RID**.Microsoft.DotNet.ILCompiler.LLVM" | ||
ILCompilerPackVersion="$(WasmNativeAOTLLVMILCompilerVersion)" | ||
ILCompilerRuntimeIdentifiers="wasi-wasm;browser-wasm;win-x64" | ||
/> | ||
</ItemGroup> | ||
|
||
<PropertyGroup Condition="'$(NativeLib)' != ''"> | ||
<_IsAndroidLibraryMode Condition="'$(RuntimeIdentifier)' == 'android-arm64' or '$(RuntimeIdentifier)' == 'android-arm' or '$(RuntimeIdentifier)' == 'android-x64' or '$(RuntimeIdentifier)' == 'android-x86'">true</_IsAndroidLibraryMode> | ||
<_IsAppleMobileLibraryMode Condition="'$(RuntimeIdentifier)' == 'ios-arm64' or '$(RuntimeIdentifier)' == 'iossimulator-arm64' or '$(RuntimeIdentifier)' == 'iossimulator-x64' or '$(RuntimeIdentifier)' == 'maccatalyst-arm64' or '$(RuntimeIdentifier)' == 'maccatalyst-x64' or '$(RuntimeIdentifier)' == 'tvos-arm64'">true</_IsAppleMobileLibraryMode> | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can we not use PublishAot == true condition directly? MSBuild evaluates it the same way (since there is no use in any target), so it seems redundant.
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.
We can. I wanted to extract it, because we weren't sure if using
PublishAot
for this highly experimental thing is the right choice.