New issue
Advanced search Search tips

Issue 789467 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

building clang on windows with tools/clang/scripts/update.py fails if %USERPROFILE%\Source is present

Project Member Reported by kkinnu...@nvidia.com, Nov 29 2017

Issue description

Chrome Version: (copy from chrome://version)
OS: Win 10, VS2017

What steps will reproduce the problem?
(1) Clean VS2017 install
(2) Clean chromium checkout (possibly two)
(3) python ./tools/clang/scripts/update.py --force-local-build --without-android 

What is the expected result?
Compile works

What happens instead?
Compile fails while trying to execute lld-link.exe

The cmake output seems to go to %USERPROFILE%\Source


The MSVS env bat file changes the CWD to %USERPROFILE%\Source 

c:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/Common7/Tools/vsdevcmd/core/vsdevcmd_end.bat

Has following code:

@REM Set the current directory that users will be set after the script completes
@REM in the following order:
@REM 1. [VSCMD_START_DIR] will be used if specified in the user environment
@REM 2. [USERPROFILE]\source if it exists
@REM 3. current directory
if "%VSCMD_START_DIR%" NEQ "" (
    cd /d "%VSCMD_START_DIR%"
) else (
    if EXIST "%USERPROFILE%\Source" (
        cd /d "%USERPROFILE%\Source"
    )
)

For some reason, the VS install decided that I'd like to store sources to Source, and created the dir.

So somebody else might run into this, I don't know if it would be worth it to fix SetupScript to export the VSCMD_START_DIR or something other.

 

Sign in to add a comment