build, tools: look for local installation of NASM

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: https://github.com/nodejs/node/pull/36014
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
This commit is contained in:
Richard Lau 2020-11-07 02:45:00 +00:00 committed by Node.js GitHub Bot
parent dd0f8f18c2
commit 322abb4e05

View file

@ -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