diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2016-04-24 20:46:25 -0700 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2016-04-24 20:46:25 -0700 |
commit | 33e3a6f68591baf75e08f42ff098aa13568eb9db (patch) | |
tree | 882d3e5b2a93c49e1c7fb727f0531bdd6e48e61e /build.cmd | |
parent | 85ff1e3b3ca3d7eb10ab0e2e6a41bdf721be4540 (diff) | |
download | coreclr-33e3a6f68591baf75e08f42ff098aa13568eb9db.tar.gz coreclr-33e3a6f68591baf75e08f42ff098aa13568eb9db.tar.bz2 coreclr-33e3a6f68591baf75e08f42ff098aa13568eb9db.zip |
Fix PS version log path
The PS version log path is incorrectly set to the root of the current drive when
building for ARM64 with toolset_dir set. In that case, the `%~dp0` doesn't hold
the current drive and directory anymore.
I have fixed it by using `__LogsDir` instead. It it a good practice to put generated
files somewhere under the bin folder and the logs directory seems appropriate.
Diffstat (limited to 'build.cmd')
-rw-r--r-- | build.cmd | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -233,7 +233,7 @@ for %%X in (powershell.exe) do (set __PSDir=%%~$PATH:X) if not defined __PSDir goto :NoPS :: Validate Powershell version -set PS_VERSION_LOG=%~dp0ps-version.log +set "PS_VERSION_LOG=%__LogsDir%\ps-version.log" powershell -NoProfile -ExecutionPolicy unrestricted -Command "$PSVersionTable.PSVersion.Major" > %PS_VERSION_LOG% set /P PS_VERSION=< %PS_VERSION_LOG% if %PS_VERSION% LEQ 2 ( |