File tree Expand file tree Collapse file tree 6 files changed +13
-13
lines changed
docs/workflow/building/coreclr
coreclr/nativeaot/System.Private.CoreLib/src
nativeaot/SmokeTests/HelloWasm Expand file tree Collapse file tree 6 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -88,11 +88,11 @@ build clr.aot+libs+nativeaot.packages -c Debug -a wasm -os browser -cmakeargs -D
88
88
```
89
89
To build the runtime tests for WASI
90
90
```
91
- src\tests\build nativeaot Debug wasm tree nativeaot wasi /p:LibrariesConfiguration=debug /p:TestWrapperTargetsWindows=true /p:FeatureWasmManagedThreads =true
91
+ src\tests\build nativeaot Debug wasm tree nativeaot wasi /p:LibrariesConfiguration=debug /p:TestWrapperTargetsWindows=true /p:WasmEnableThreads =true
92
92
```
93
93
To build the runtime tests for browser
94
94
```
95
- src\tests\build nativeaot Debug wasm tree nativeaot browser /p:LibrariesConfiguration=debug /p:TestWrapperTargetsWindows=true /p:FeatureWasmManagedThreads=true /p: WasmEnableThreads=true
95
+ src\tests\build nativeaot Debug wasm tree nativeaot browser /p:LibrariesConfiguration=debug /p:TestWrapperTargetsWindows=true /p:WasmEnableThreads=true
96
96
```
97
97
98
98
Original file line number Diff line number Diff line change @@ -33,11 +33,11 @@ steps:
33
33
- ${{ if eq(parameters.archType, 'wasm') }} :
34
34
- ${{ if eq(parameters.platform, 'browser_multithread_wasm_win') }} :
35
35
- script : |
36
- $(Build.SourcesDirectory)/src/tests/build$(scriptExt) nativeaot $(buildConfigUpper) ${{ parameters.archType }} $(crossArg) $(_officialBuildParameter) ci browser tree nativeaot /p:LibrariesConfiguration=${{ parameters.librariesConfiguration }} /p:FeatureWasmManagedThreads=true /p: WasmEnableThreads=true
36
+ $(Build.SourcesDirectory)/src/tests/build$(scriptExt) nativeaot $(buildConfigUpper) ${{ parameters.archType }} $(crossArg) $(_officialBuildParameter) ci browser tree nativeaot /p:LibrariesConfiguration=${{ parameters.librariesConfiguration }} /p:WasmEnableThreads=true
37
37
displayName: Build WebAssembly browser Mutlithread runtime tests
38
38
- ${{ elseif eq(parameters.platform, 'wasi_multithread_wasm_win') }} :
39
39
- script : |
40
- $(Build.SourcesDirectory)/src/tests/build$(scriptExt) nativeaot $(buildConfigUpper) ${{ parameters.archType }} $(crossArg) $(_officialBuildParameter) ci wasi tree nativeaot /p:LibrariesConfiguration=${{ parameters.librariesConfiguration }} /p:FeatureWasmManagedThreads =true
40
+ $(Build.SourcesDirectory)/src/tests/build$(scriptExt) nativeaot $(buildConfigUpper) ${{ parameters.archType }} $(crossArg) $(_officialBuildParameter) ci wasi tree nativeaot /p:LibrariesConfiguration=${{ parameters.librariesConfiguration }} /p:WasmEnableThreads =true
41
41
displayName: Build WebAssembly wasi Mutlithread runtime tests
42
42
- ${{ else }} :
43
43
- script : $(Build.SourcesDirectory)/src/tests/build$(scriptExt) nativeaot $(buildConfigUpper) ${{ parameters.osGroup }} $(crossArg) $(_officialBuildParameter) ci tree nativeaot /p:LibrariesConfiguration=${{ parameters.librariesConfiguration }}
Original file line number Diff line number Diff line change 35
35
<PropertyGroup Condition =" '$(TargetsSingleThreadedWasm)' != 'true'" >
36
36
<FeaturePortableThreadPool >true</FeaturePortableThreadPool >
37
37
<FeaturePortableTimer >true</FeaturePortableTimer >
38
+ <!-- LLVM-TODO: Remove FeatureWasmManagedThreads in favor of WasmEnableThreads. -->
38
39
<FeatureWasmManagedThreads Condition =" '$(WasmEnableThreads)' == 'true'" >true</FeatureWasmManagedThreads >
39
40
<FeatureWasmPerfTracing Condition =" ('$(TargetsBrowser)' == 'true' or '$(TargetsWasi)' == 'true') and ('$(WasmEnableThreads)' == 'true')" >true</FeatureWasmPerfTracing >
40
- <DefineConstants Condition =" '$(FeatureWasmManagedThreads )' == 'true'" >$(DefineConstants);FEATURE_WASM_MANAGED_THREADS</DefineConstants >
41
+ <DefineConstants Condition =" '$(WasmEnableThreads )' == 'true'" >$(DefineConstants);FEATURE_WASM_MANAGED_THREADS</DefineConstants >
41
42
<DefineConstants Condition =" '$(FeatureWasmPerfTracing)' == 'true'" >$(DefineConstants);FEATURE_WASM_PERFTRACING</DefineConstants >
42
43
</PropertyGroup >
43
44
<PropertyGroup >
351
352
<Compile Include =" System\Diagnostics\StackFrame.NativeAot.Wasm.cs" />
352
353
<Compile Include =" System\Diagnostics\StackFrame.NativeAot.Wasi.cs" Condition =" '$(TargetsWasi)' == 'true'" />
353
354
<Compile Include =" System\Diagnostics\StackFrame.NativeAot.Browser.cs" Condition =" '$(TargetsBrowser)' == 'true'" />
354
- <Compile Include =" System\Threading\PortableThreadPool.NativeAot.Browser.cs" Condition =" '$(TargetsBrowser)' == 'true' and '$(FeatureWasmManagedThreads )' == 'true'" />
355
- <Compile Include =" System\Threading\ThreadPool.NativeAot.Browser.cs" Condition =" '$(TargetsBrowser)' == 'true' and '$(FeatureWasmManagedThreads )' == 'true'" />
355
+ <Compile Include =" System\Threading\PortableThreadPool.NativeAot.Browser.cs" Condition =" '$(TargetsBrowser)' == 'true' and '$(WasmEnableThreads )' == 'true'" />
356
+ <Compile Include =" System\Threading\ThreadPool.NativeAot.Browser.cs" Condition =" '$(TargetsBrowser)' == 'true' and '$(WasmEnableThreads )' == 'true'" />
356
357
</ItemGroup >
357
358
358
359
<!-- WASM-specific things. Keep in sync with Mono. -->
Original file line number Diff line number Diff line change 30
30
<DisabledProjects Include =" $(TestRoot)nativeaot\SmokeTests\HelloWasm\WasmDebugging.csproj" Condition =" '$(TargetOS)' == 'browser' or '$(OS)' == 'Windows_NT' or '$(Configuration)' != 'Debug'" />
31
31
<DisabledProjects Include =" $(TestRoot)readytorun\**\*.csproj" Condition =" '$(TestBuildMode)' == 'nativeaot'" />
32
32
33
- <!-- WaitForPendingFinalizers fails, FinalizeFinalizableObjects is not implemented when FeatureWasmManagedThreads . -->
34
- <DisabledProjects Include =" $(TestRoot)nativeaot\SmokeTests\DynamicGenerics\DynamicGenerics.csproj" Condition =" '$(FeatureWasmManagedThreads )' == 'true'" />
33
+ <!-- WaitForPendingFinalizers fails, FinalizeFinalizableObjects is not implemented when WasmEnableThreads . -->
34
+ <DisabledProjects Include =" $(TestRoot)nativeaot\SmokeTests\DynamicGenerics\DynamicGenerics.csproj" Condition =" '$(WasmEnableThreads )' == 'true'" />
35
35
<!-- Hangs attemping to create thread. -->
36
- <DisabledProjects Include =" $(TestRoot)nativeaot\SmokeTests\HelloWasm\HelloWasm.csproj" Condition =" '$(FeatureWasmManagedThreads )' == 'true' and '$(TargetOS)' == 'browser'" />
36
+ <DisabledProjects Include =" $(TestRoot)nativeaot\SmokeTests\HelloWasm\HelloWasm.csproj" Condition =" '$(WasmEnableThreads )' == 'true' and '$(TargetOS)' == 'browser'" />
37
37
<!-- Fails with MONO_WASM: Assert failed: Expect to have one js-module-threads asset in resources -->
38
- <DisabledProjects Include =" $(TestRoot)nativeaot\SmokeTests\DotnetJs\DotNetJs.App.csproj" Condition =" '$(FeatureWasmManagedThreads )' == 'true' and '$(TargetOS)' == 'browser'" />
38
+ <DisabledProjects Include =" $(TestRoot)nativeaot\SmokeTests\DotnetJs\DotNetJs.App.csproj" Condition =" '$(WasmEnableThreads )' == 'true' and '$(TargetOS)' == 'browser'" />
39
39
</ItemGroup >
40
40
41
41
<ItemGroup >
Original file line number Diff line number Diff line change 490
490
<GroupBuildCmd Condition =" '$(MonoForceInterpreter)' == 'true'" >$(GroupBuildCmd) "/p:MonoForceInterpreter=true"</GroupBuildCmd >
491
491
<GroupBuildCmd Condition =" '$(RunAOTCompilation)' == 'true'" >$(GroupBuildCmd) "/p:RunAOTCompilation=true"</GroupBuildCmd >
492
492
<GroupBuildCmd Condition =" '$(DevTeamProvisioning)' != ''" >$(GroupBuildCmd) "/p:DevTeamProvisioning=$(DevTeamProvisioning)"</GroupBuildCmd >
493
- <GroupBuildCmd Condition =" '$(FeatureWasmManagedThreads)' != ''" >$(GroupBuildCmd) "/p:FeatureWasmManagedThreads=$(FeatureWasmManagedThreads)"</GroupBuildCmd >
494
493
<GroupBuildCmd Condition =" '$(WasmEnableThreads)' != ''" >$(GroupBuildCmd) "/p:WasmEnableThreads=$(WasmEnableThreads)"</GroupBuildCmd >
495
494
</PropertyGroup >
496
495
Original file line number Diff line number Diff line change 10
10
<RequiresProcessIsolation >true</RequiresProcessIsolation >
11
11
<ReferenceXUnitWrapperGenerator >false</ReferenceXUnitWrapperGenerator >
12
12
<CLRTestTargetUnsupported Condition =" '$(TargetsWasm)' != 'true'" >true</CLRTestTargetUnsupported >
13
- <DefineConstants Condition =" '$(TargetsWasm)' == 'true' and '$(FeatureWasmManagedThreads )' == 'true'" >$(DefineConstants);NO_EXPLICIT_FINALIZER</DefineConstants >
13
+ <DefineConstants Condition =" '$(TargetsWasm)' == 'true' and '$(WasmEnableThreads )' == 'true'" >$(DefineConstants);NO_EXPLICIT_FINALIZER</DefineConstants >
14
14
</PropertyGroup >
15
15
16
16
<ItemGroup >
You can’t perform that action at this time.
0 commit comments