diff options
author | Jan Kotas <jkotas@microsoft.com> | 2016-12-17 23:44:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-17 23:44:29 -0800 |
commit | 4497b25d1107846e0ac8d09fa13e40173528fe9e (patch) | |
tree | 1c4b79f46e4ddef283e0dc8ecd3029abe2f15aed | |
parent | 466fc3252f78619612a2da8d21787460b2d94c0d (diff) | |
download | coreclr-4497b25d1107846e0ac8d09fa13e40173528fe9e.tar.gz coreclr-4497b25d1107846e0ac8d09fa13e40173528fe9e.tar.bz2 coreclr-4497b25d1107846e0ac8d09fa13e40173528fe9e.zip |
Use ExecutionPolicy ByPass to execute probe-win.ps1 script during the build (#8673)
Port of https://github.com/dotnet/corert/issues/2377
-rw-r--r-- | build-test.cmd | 2 | ||||
-rw-r--r-- | build.cmd | 2 | ||||
-rw-r--r-- | src/pal/tools/gen-buildsys-win.bat | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/build-test.cmd b/build-test.cmd index 272e133004..215fb53034 100644 --- a/build-test.cmd +++ b/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 === @@ -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/pal/tools/gen-buildsys-win.bat b/src/pal/tools/gen-buildsys-win.bat index ab57fb4bb4..f7f81fca33 100644 --- a/src/pal/tools/gen-buildsys-win.bat +++ b/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% |