mirror of https://gitee.com/openkylin/nodejs.git
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
|