Skip to content

Commit

Permalink
fix: Ensure AOT profile path is absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban authored Sep 23, 2024
1 parent f14c2e8 commit 677a84f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Uno.Wasm.Bootstrap/build/Uno.Wasm.Bootstrap.targets
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
Condition=" '$(WasmShellGenerateAOTProfile)' == 'true' ">
<ItemGroup>
<Reference Include="Uno.Wasm.AotProfiler"
HintPath="$([MSBuild]::NormalizeDirectory('$(MSBuildThisFileDirectory)', '.., 'tools', 'support'))Uno.Wasm.AotProfiler.dll"
HintPath="$([MSBuild]::NormalizeDirectory('$(MSBuildThisFileDirectory)', '..', 'tools', 'support'))Uno.Wasm.AotProfiler.dll"
CopyToOutputDirectory="Always"
PostProcessAssembly="true" />
<TrimmerRootAssembly Include="Uno.Wasm.AotProfiler" />
Expand All @@ -78,7 +78,7 @@
Condition=" '$(WasmShellEnableLogProfiler)' == 'true' ">
<ItemGroup>
<Reference Include="Uno.Wasm.LogProfiler"
HintPath="$([MSBuild]::NormalizeDirectory('$(MSBuildThisFileDirectory)', '.., 'tools', 'support'))Uno.Wasm.LogProfiler.dll"
HintPath="$([MSBuild]::NormalizeDirectory('$(MSBuildThisFileDirectory)', '..', 'tools', 'support'))Uno.Wasm.LogProfiler.dll"
CopyToOutputDirectory="Always"
PostProcessAssembly="true" />
<TrimmerRootAssembly Include="Uno.Wasm.LogProfiler" />
Expand Down Expand Up @@ -165,6 +165,9 @@

<WasmLinkOptimizationFlag Condition=" '$(WasmShellEmccLinkOptimization)' == 'false' ">-O0</WasmLinkOptimizationFlag>

<!-- Profiled AOT Compat -->
<WasmAotProfilePath Condition="@(WasmShellEnableAotProfile->Count()) > 0" >@(WasmShellEnableAotProfile)</WasmAotProfilePath

<!-- Jiterpreter compatibility -->
<BlazorWebAssemblyJiterpreter Condition=" '$(WasmShellEnableJiterpreter)' != '' AND '$(BlazorWebAssemblyJiterpreter)' == '' ">$(WasmShellEnableJiterpreter)</BlazorWebAssemblyJiterpreter>

Expand Down Expand Up @@ -348,7 +351,7 @@

<PropertyGroup Condition=" '$(_FilteredAotProfile)' != '' ">
<!-- Override the user's profile with the filtered one -->
<WasmAotProfilePath>$(_FilteredAotProfile)</WasmAotProfilePath>
<WasmAotProfilePath>$([System.IO.Path]::GetFullPath($(_FilteredAotProfile))</WasmAotProfilePath>
</PropertyGroup>

</Target>
Expand Down

0 comments on commit 677a84f

Please sign in to comment.