11cb0ef41Sopenharmony_ci@IF NOT DEFINED DEBUG_HELPER @ECHO OFF
21cb0ef41Sopenharmony_ci
31cb0ef41Sopenharmony_ciECHO Looking for NASM
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_ciFOR /F "delims=" %%a IN ('where nasm 2^> NUL') DO (
61cb0ef41Sopenharmony_ci  EXIT /B 0
71cb0ef41Sopenharmony_ci)
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_ciIF EXIST "%ProgramFiles%\NASM\nasm.exe" (
101cb0ef41Sopenharmony_ci  SET "Path=%Path%;%ProgramFiles%\NASM"
111cb0ef41Sopenharmony_ci  EXIT /B 0
121cb0ef41Sopenharmony_ci)
131cb0ef41Sopenharmony_ci
141cb0ef41Sopenharmony_ciIF EXIST "%ProgramFiles(x86)%\NASM\nasm.exe" (
151cb0ef41Sopenharmony_ci  SET "Path=%Path%;%ProgramFiles(x86)%\NASM"
161cb0ef41Sopenharmony_ci  EXIT /B 0
171cb0ef41Sopenharmony_ci)
181cb0ef41Sopenharmony_ci
191cb0ef41Sopenharmony_ciif EXIST "%LOCALAPPDATA%\bin\NASM\nasm.exe" (
201cb0ef41Sopenharmony_ci  SET "Path=%Path%;%LOCALAPPDATA%\bin\NASM"
211cb0ef41Sopenharmony_ci  EXIT /B 0
221cb0ef41Sopenharmony_ci)
231cb0ef41Sopenharmony_ci
241cb0ef41Sopenharmony_ciEXIT /B 1
25