mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 07:27:22 +01:00
eec659c138
OpenSSL-1.1.0 requires the nasm assembler for building asm files on Windows. This finds nasm at \Program Files\NASM\nasm.exe or \ProgramFiles(x86)\NASM\nasm.exe in vcbuild.bat for users who did not add its path in their enviroments. Fixes: https://github.com/nodejs/build/issues/1190 Fixes: https://github.com/nodejs/node/issues/4270 PR-URL: https://github.com/nodejs/node/pull/19794 Reviewed-By: Shigeki Ohtsu <ohtsu@ohtsu.org> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
20 lines
344 B
Batchfile
20 lines
344 B
Batchfile
@IF NOT DEFINED DEBUG_HELPER @ECHO OFF
|
|
|
|
ECHO Looking for NASM
|
|
|
|
FOR /F "delims=" %%a IN ('where nasm 2^> NUL') DO (
|
|
EXIT /B 0
|
|
)
|
|
|
|
IF EXIST "%ProgramFiles%\NASM\nasm.exe" (
|
|
SET "Path=%Path%;%ProgramFiles%\NASM"
|
|
EXIT /B 0
|
|
)
|
|
|
|
IF EXIST "%ProgramFiles(x86)%\NASM\nasm.exe" (
|
|
SET "Path=%Path%;%ProgramFiles(x86)%\NASM"
|
|
EXIT /B 0
|
|
)
|
|
|
|
EXIT /B 1
|