Skip to content

Commit

Permalink
Fixes microsoft#29 Build scripts misbehave when relative paths are us…
Browse files Browse the repository at this point in the history
…ed in hctstart (microsoft#31)

hctstart sets environment variables for source and build output dirs.

To support relative paths as arguments in hctstart, the full path
expansion should be used.
  • Loading branch information
marcelolr authored Jan 25, 2017
1 parent f805233 commit ab67593
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/hct/hctstart.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ if "%2"=="" (
goto :showhelp
)

if not exist "%1\utils\hct\hctstart.cmd" (
echo %1 does not look like a directory with sources - cannot find %1\utils\hct\hctstart.cmd
if not exist "%~f1\utils\hct\hctstart.cmd" (
echo %1 does not look like a directory with sources - cannot find %~f1\utils\hct\hctstart.cmd
exit /b 1
)

set HLSL_SRC_DIR=%1
set HLSL_BLD_DIR=%2
set HLSL_SRC_DIR=%~f1
set HLSL_BLD_DIR=%~f2
echo HLSL source directory set to HLSL_SRC_DIR=%HLSL_SRC_DIR%
echo HLSL source directory set to HLSL_BLD_DIR=%HLSL_BLD_DIR%
echo.
Expand Down

0 comments on commit ab67593

Please sign in to comment.