From 8ab7f258d48dc7361687672c7a0a0c371a223f1e Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Sat, 7 Nov 2020 02:45:00 +0000 Subject: [PATCH] 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 Reviewed-By: Michael Dawson --- tools/msvs/find_nasm.cmd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/msvs/find_nasm.cmd b/tools/msvs/find_nasm.cmd index d30d2131166caa..09e7c7554a8786 100644 --- a/tools/msvs/find_nasm.cmd +++ b/tools/msvs/find_nasm.cmd @@ -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