See https://github.com/dotnet/runtime/issues/53367 for the motivating issue
-->
<EmscriptenEnvVars Include="PYTHONUTF8=1" />
+ <EmscriptenEnvVars Include="EM_WORKAROUND_PYTHON_BUG_34780=1" />
</ItemGroup>
</Target>
EnvVars["_WasmStrictVersionMatch"] = "true";
EnvVars["MSBuildSDKsPath"] = string.Empty;
EnvVars["PATH"] = $"{sdkForWorkloadPath}{Path.PathSeparator}{Environment.GetEnvironmentVariable("PATH")}";
+ EnvVars["EM_WORKAROUND_PYTHON_BUG_34780"] = "1";
// helps with debugging
EnvVars["WasmNativeStrip"] = "false";
REM Functions
:SetEnvVars
if [%TEST_USING_WORKLOADS%] == [true] (
- set "PATH=%BASE_DIR%\dotnet-workload;%PATH%"
set SDK_HAS_WORKLOAD_INSTALLED=true
- set "SDK_FOR_WORKLOAD_TESTING_PATH=%BASE_DIR%\dotnet-workload"
+ robocopy /np /nfl /e %BASE_DIR%\dotnet-workload %EXECUTION_DIR%\dotnet-workload
+ set "SDK_FOR_WORKLOAD_TESTING_PATH=%EXECUTION_DIR%\dotnet-workload"
+ set "PATH=%EXECUTION_DIR%\dotnet-workload;%PATH%"
set "AppRefDir=%BASE_DIR%\microsoft.netcore.app.ref"
) else (
- set "PATH=%BASE_DIR%\sdk-no-workload;%PATH%"
set SDK_HAS_WORKLOAD_INSTALLED=false
- set "SDK_FOR_WORKLOAD_TESTING_PATH=%BASE_DIR%\sdk-no-workload"
+ robocopy /np /nfl /e %BASE_DIR%\sdk-no-workload %EXECUTION_DIR%\sdk-no-workload
+ set "SDK_FOR_WORKLOAD_TESTING_PATH=%EXECUTION_DIR%\sdk-no-workload"
+ set "PATH=%EXECUTION_DIR%\sdk-no-workload;%PATH%"
set "AppRefDir=%BASE_DIR%\microsoft.netcore.app.ref"
)
EXIT /b 0
function set_env_vars()
{
if [ "x$TEST_USING_WORKLOADS" = "xtrue" ]; then
- export PATH=$BASE_DIR/dotnet-workload:$PATH
+ cp -r $BASE_DIR/dotnet-workload $EXECUTION_DIR
+ export PATH=$EXECUTION_DIR/dotnet-workload:$PATH
export SDK_HAS_WORKLOAD_INSTALLED=true
- export SDK_FOR_WORKLOAD_TESTING_PATH=$BASE_DIR/dotnet-workload
+ export SDK_FOR_WORKLOAD_TESTING_PATH=$EXECUTION_DIR/dotnet-workload
export AppRefDir=$BASE_DIR/microsoft.netcore.app.ref
else
- export PATH=$BASE_DIR/sdk-no-workload:$PATH
+ cp -r $BASE_DIR/sdk-no-workload $EXECUTION_DIR
+ export PATH=$EXECUTION_DIR/sdk-no-workload:$PATH
export SDK_HAS_WORKLOAD_INSTALLED=false
- export SDK_FOR_WORKLOAD_TESTING_PATH=$BASE_DIR/sdk-no-workload
+ export SDK_FOR_WORKLOAD_TESTING_PATH=$EXECUTION_DIR/sdk-no-workload
export AppRefDir=$BASE_DIR/microsoft.netcore.app.ref
fi
}