You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use python from the emsdk package when building browser target (#117513)
This works around an issue on AzDO build machines where an internal monitoring agent process sometimes interferes with the system python (which would be called by emcc for every compilation unit).
<_CoreClrBuildPreSourceCondition="'$(TargetsBrowser)' == 'true' and $([MSBuild]::IsOsPlatform(Windows))">"$([MSBuild]::NormalizePath('$(RepoRoot)src/mono/browser/emsdk', 'emsdk_env.cmd'))"&& </_CoreClrBuildPreSource>
111
+
<_CoreClrBuildPreSourceCondition="'$(TargetsBrowser)' == 'true' and $([MSBuild]::IsOsPlatform(Windows))">call "$([MSBuild]::NormalizePath('$(RepoRoot)src/mono/browser/emsdk', 'emsdk_env.cmd'))"&& </_CoreClrBuildPreSource>
112
112
<_CoreClrBuildPreSourceCondition="'$(TargetsBrowser)' == 'true' and !$([MSBuild]::IsOsPlatform(Windows))">source "$(RepoRoot)src/mono/browser/emsdk/emsdk_env.sh"&& </_CoreClrBuildPreSource>
113
113
</PropertyGroup>
114
114
115
115
<!-- Use IgnoreStandardErrorWarningFormat because Arcade sets WarnAsError and we want to avoid upgrading compiler warnings to errors in release branches -->
<ItemGroupCondition="'$(ContinuousIntegrationBuild)' == 'true' and '$(DotNetBuildFromVMR)' != 'true' and ('$(TargetsOSX)' == 'true' or '$(TargetsMacCatalyst)' == 'true' or '$(TargetsBrowser)' == 'true' or '$(TargetsWasi)' == 'true' or '$(Targetsillumos)' == 'true')">
131
121
<_MonoCMakeArgsInclude="-DENABLE_WERROR=1"/>
@@ -252,8 +242,7 @@ set EMSDK_PATH=%CURRENT_SCRIPT:~0,-1%\
252
242
253
243
set EMSDK_PYTHON=%EMSDK_PATH%python\python.exe
254
244
set DOTNET_EMSCRIPTEN_LLVM_ROOT=%EMSDK_PATH%bin\
255
-
set DOTNET_EMSCRIPTEN_NODE_JS=%EMSDK_PATH%node\bin\node
256
-
set DOTNET_EMSCRIPTEN_NODE_PATH=%EMSDK_PATH%node\bin\
245
+
set DOTNET_EMSCRIPTEN_NODE_JS=%EMSDK_PATH%node\bin\node.exe
<!-- Use IgnoreStandardErrorWarningFormat because Arcade sets WarnAsError and we want to avoid upgrading compiler warnings to error in release branches -->
<!-- Run script that uses CMake to generate and build the native files. -->
106
108
<!-- Use IgnoreStandardErrorWarningFormat because Arcade sets WarnAsError and we want to avoid upgrading compiler warnings to errors in release branches -->
0 commit comments