Skip to content

Commit

Permalink
build, tools: look for local installation of NASM
Browse files Browse the repository at this point in the history
Search the default installation path for NASM installed by a user
without administrator privileges when not found on the Path or in
the default system-wide installation path.

PR-URL: #36014
Reviewed-By: Zeyu Yang <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
  • Loading branch information
richardlau authored and danielleadams committed Nov 10, 2020
1 parent 359a659 commit 6ac9c8f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/msvs/find_nasm.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,9 @@ IF EXIST "%ProgramFiles(x86)%\NASM\nasm.exe" (
EXIT /B 0
)

if EXIST "%LOCALAPPDATA%\bin\NASM\nasm.exe" (
SET "Path=%Path%;%LOCALAPPDATA%\bin\NASM"
EXIT /B 0
)

EXIT /B 1

0 comments on commit 6ac9c8f

Please sign in to comment.