1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-26 08:20:27 +00:00
janet/natives/hello/build.bat

26 lines
430 B
Batchfile
Raw Normal View History

2018-08-13 21:40:55 +00:00
@rem Generated batch script, run in 'Visual Studio Developer Prompt'
2018-08-07 04:54:47 +00:00
2018-08-13 21:40:55 +00:00
@rem
2018-08-07 04:54:47 +00:00
2018-08-13 21:40:55 +00:00
@echo off
2018-08-07 04:54:47 +00:00
2018-08-13 21:40:55 +00:00
cl /nologo /I..\..\src\include /c /O2 /W3 hello.c
2018-08-07 04:54:47 +00:00
@if errorlevel 1 goto :BUILDFAIL
2018-08-13 21:40:55 +00:00
link /nologo /dll ..\..\dst.lib /out:hello.dll *.obj
if errorlevel 1 goto :BUILDFAIL
2018-08-07 04:54:47 +00:00
2018-08-13 21:40:55 +00:00
@echo .
@echo ======
@echo Build Succeeded.
@echo =====
2018-08-07 04:54:47 +00:00
exit /b 0
:BUILDFAIL
2018-08-13 21:40:55 +00:00
@echo .
@echo =====
@echo BUILD FAILED. See Output For Details.
@echo =====
@echo .
2018-08-07 04:54:47 +00:00
exit /b 1