Skip to content

Commit 6ac9c8f

Browse files
richardlaudanielleadams
authored andcommitted
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: #36014 Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
1 parent 359a659 commit 6ac9c8f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/msvs/find_nasm.cmd

+5
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ IF EXIST "%ProgramFiles(x86)%\NASM\nasm.exe" (
1616
EXIT /B 0
1717
)
1818

19+
if EXIST "%LOCALAPPDATA%\bin\NASM\nasm.exe" (
20+
SET "Path=%Path%;%LOCALAPPDATA%\bin\NASM"
21+
EXIT /B 0
22+
)
23+
1924
EXIT /B 1

0 commit comments

Comments
 (0)