From 51893f61a809cb2cecd24e30b05c758698a0adf6 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Sat, 17 Dec 2016 23:44:29 -0800 Subject: [PATCH] Use ExecutionPolicy ByPass to execute probe-win.ps1 script during the build (dotnet/coreclr#8673) Port of https://github.com/dotnet/corert/issues/2377 Commit migrated from https://github.com/dotnet/coreclr/commit/4497b25d1107846e0ac8d09fa13e40173528fe9e --- src/coreclr/build-test.cmd | 2 +- src/coreclr/build.cmd | 2 +- src/coreclr/src/pal/tools/gen-buildsys-win.bat | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/coreclr/build-test.cmd b/src/coreclr/build-test.cmd index 272e133..215fb53 100644 --- a/src/coreclr/build-test.cmd +++ b/src/coreclr/build-test.cmd @@ -98,7 +98,7 @@ if not exist "%__LogsDir%" md "%__LogsDir%" echo %__MsgPrefix%Checking prerequisites :: Eval the output from probe-win1.ps1 -for /f "delims=" %%a in ('powershell -NoProfile -ExecutionPolicy RemoteSigned "& ""%__SourceDir%\pal\tools\probe-win.ps1"""') do %%a +for /f "delims=" %%a in ('powershell -NoProfile -ExecutionPolicy ByPass "& ""%__SourceDir%\pal\tools\probe-win.ps1"""') do %%a REM ========================================================================================= REM === diff --git a/src/coreclr/build.cmd b/src/coreclr/build.cmd index 16f1e28..f8c49e3 100644 --- a/src/coreclr/build.cmd +++ b/src/coreclr/build.cmd @@ -189,7 +189,7 @@ echo %__MsgPrefix%Commencing CoreCLR Repo build echo %__MsgPrefix%Checking prerequisites :: Eval the output from probe-win1.ps1 -for /f "delims=" %%a in ('powershell -NoProfile -ExecutionPolicy RemoteSigned "& ""%__SourceDir%\pal\tools\probe-win.ps1"""') do %%a +for /f "delims=" %%a in ('powershell -NoProfile -ExecutionPolicy ByPass "& ""%__SourceDir%\pal\tools\probe-win.ps1"""') do %%a REM ========================================================================================= REM === diff --git a/src/coreclr/src/pal/tools/gen-buildsys-win.bat b/src/coreclr/src/pal/tools/gen-buildsys-win.bat index ab57fb4..f7f81fc 100644 --- a/src/coreclr/src/pal/tools/gen-buildsys-win.bat +++ b/src/coreclr/src/pal/tools/gen-buildsys-win.bat @@ -36,7 +36,7 @@ goto loop if defined CMakePath goto DoGen :: Eval the output from probe-win1.ps1 -for /f "delims=" %%a in ('powershell -NoProfile -ExecutionPolicy RemoteSigned "& "%basePath%\probe-win.ps1""') do %%a +for /f "delims=" %%a in ('powershell -NoProfile -ExecutionPolicy ByPass "& "%basePath%\probe-win.ps1""') do %%a :DoGen "%CMakePath%" "-DCMAKE_USER_MAKE_RULES_OVERRIDE=%basePath%\windows-compiler-override.txt" "-DCMAKE_INSTALL_PREFIX:PATH=$ENV{__CMakeBinDir}" "-DCLR_CMAKE_HOST_ARCH=%__Arch%" %__ExtraCmakeParams% -G "%__CmakeGenerator%" %__SourceDir% -- 2.7.4