Skip to content

Commit

Permalink
Run bxl script analyzer.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljcollins25 authored Sep 20, 2024
1 parent c0fb3eb commit f6507c7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
7 changes: 6 additions & 1 deletion repos/github/microsoft/buildxl/analyze.settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"addArguments": [ "--compilerArgumentFile", "{CodexDebugDir}/csargs" ],
"addArguments": [
"--compilerArgumentFile",
"{CodexDebugDir}/csargs",
"-e",
"{CodexDebugDir}/cdxdsc"
],
"repoRoot": "B:/"
}
9 changes: 8 additions & 1 deletion repos/github/microsoft/buildxl/build.cmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@echo on

set BUILDXL_LOG_DIR=%CodexDebugDir%/bxllogs

mkdir "%ProgramFiles%/Microsoft Visual Studio/2022/Preview/VC/Tools/MSVC/14.39.33519"
Expand All @@ -16,6 +18,9 @@ powershell -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "%~dp0/writeconfi
set CSARGS_OUTPUT_DIR=%CodexDebugDir%\csargs
echo CSARGS_OUTPUT_DIR=%CSARGS_OUTPUT_DIR%

set CDXDSC_OUTPUT_DIR=%CodexDebugDir%\cdxdsc
echo CDXDSC_OUTPUT_DIR=%CDXDSC_OUTPUT_DIR%

echo ----- Running BuildXL build -----

call %SrcDir%\bxl.cmd -DoNotUseDefaultCacheConfigFilePath "/f:(requiredfor(tag='telemetry:csc')or(tag='telemetry:csc'))" /q:Debug /incrementalScheduling- ^
Expand All @@ -33,4 +38,6 @@ subst B: %SrcDir%

echo ----- Running Codex script analyzer -----

REM call %SrcDir%\bxlanalyzer.cmd /mode:Codex /xl:%BUILDXL_LOG_DIR% /o:%CSARGS_OUTPUT_DIR%
call %SrcDir%\bxl.cmd -DeployDev

call %SrcDir%\Out\Selfhost\Dev\bxlScriptAnalyzer.exe /a:Codex /c:%SrcDir%\config.dsc /o:%CDXDSC_OUTPUT_DIR%

0 comments on commit f6507c7

Please sign in to comment.