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 <himself65@outlook.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
  • Loading branch information
richardlau authored and BethGriggs committed Dec 15, 2020
1 parent f498127 commit 8ab7f25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/msvs/find_nasm.cmd
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 8ab7f25

Please sign in to comment.