mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 15:43:01 +00:00 
			
		
		
		
	Link freebsd build.
Also begin work on CI amalg test for windows.
This commit is contained in:
		| @@ -3,6 +3,7 @@ | |||||||
| [](https://ci.appveyor.com/project/bakpakin/janet/branch/master) | [](https://ci.appveyor.com/project/bakpakin/janet/branch/master) | ||||||
| [](https://travis-ci.org/janet-lang/janet) | [](https://travis-ci.org/janet-lang/janet) | ||||||
| [](https://builds.sr.ht/~bakpakin/janet/.freebsd.yaml?) | [](https://builds.sr.ht/~bakpakin/janet/.freebsd.yaml?) | ||||||
|  | [](https://builds.sr.ht/~bakpakin/janet/.openbsd.yaml?) | ||||||
|  |  | ||||||
| <img src="https://raw.githubusercontent.com/janet-lang/janet/master/assets/janet-w200.png" alt="Janet logo" width=200 align="left"> | <img src="https://raw.githubusercontent.com/janet-lang/janet/master/assets/janet-w200.png" alt="Janet logo" width=200 align="left"> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -75,6 +75,14 @@ for %%f in (src\mainclient\*.c) do ( | |||||||
| %JANET_LINK% /out:janet.exe build\core\*.obj build\mainclient\*.obj build\core_image.obj | %JANET_LINK% /out:janet.exe build\core\*.obj build\mainclient\*.obj build\core_image.obj | ||||||
| @if errorlevel 1 goto :BUILDFAIL | @if errorlevel 1 goto :BUILDFAIL | ||||||
|  |  | ||||||
|  | @rem Gen amlag | ||||||
|  | setlocal enabledelayedexpansion | ||||||
|  | set "amalg_files=" | ||||||
|  | for %%f in (src\core\*.c) do ( | ||||||
|  |     set "amalg_files=!amalg_files! %%f" | ||||||
|  | ) | ||||||
|  | janet.exe tools\amalg.janet src\core\util.h src\core\state.h src\core\gc.h src\core\vector.h src\core\fiber.h src\core\regalloc.h src\core\compile.h src\core\emit.h src\core\symcache.h %amalg_files% build\core_image.c > build\janet.c | ||||||
|  |  | ||||||
| echo === Successfully built janet.exe for Windows === | echo === Successfully built janet.exe for Windows === | ||||||
| echo === Run 'build_win test' to run tests. == | echo === Run 'build_win test' to run tests. == | ||||||
| echo === Run 'build_win clean' to delete build artifacts. === | echo === Run 'build_win clean' to delete build artifacts. === | ||||||
| @@ -106,6 +114,14 @@ for %%f in (test/suite*.janet) do ( | |||||||
|     janet.exe test\%%f |     janet.exe test\%%f | ||||||
|     @if errorlevel 1 goto :TESTFAIL |     @if errorlevel 1 goto :TESTFAIL | ||||||
| ) | ) | ||||||
|  | @%JANET_COMPILE% \Fobuild\embed_janet.obj build\janet.c | ||||||
|  | @if errorlevel 1 goto :TESTFAIL | ||||||
|  | @%JANET_COMPILE% \Fobuild\embed_main.obj test\amalg\main.c | ||||||
|  | @if errorlevel 1 goto :TESTFAIL | ||||||
|  | %JANET_LINK% /out:build\embed_test.exe build\embed_janet.obj build\embed_main.obj | ||||||
|  | @if errorlevel 1 goto :TESTFAIL | ||||||
|  | build\embed_test | ||||||
|  | @if errorlevel 1 goto :TESTFAIL | ||||||
| exit /b 0 | exit /b 0 | ||||||
|  |  | ||||||
| @rem Build a dist directory | @rem Build a dist directory | ||||||
| @@ -113,13 +129,7 @@ exit /b 0 | |||||||
| mkdir dist | mkdir dist | ||||||
| janet.exe tools\gendoc.janet > dist\doc.html | janet.exe tools\gendoc.janet > dist\doc.html | ||||||
|  |  | ||||||
| @rem Gen amlag | copy build\janet.c dist\janet.c | ||||||
| setlocal enabledelayedexpansion |  | ||||||
| set "amalg_files=" |  | ||||||
| for %%f in (src\core\*.c) do ( |  | ||||||
|     set "amalg_files=!amalg_files! %%f" |  | ||||||
| ) |  | ||||||
| janet.exe tools\amalg.janet src\core\util.h src\core\state.h src\core\gc.h src\core\vector.h src\core\fiber.h src\core\regalloc.h src\core\compile.h src\core\emit.h src\core\symcache.h %amalg_files% build\core_image.c > dist\janet.c |  | ||||||
| copy janet.exe dist\janet.exe | copy janet.exe dist\janet.exe | ||||||
| copy LICENSE dist\LICENSE | copy LICENSE dist\LICENSE | ||||||
| copy README.md dist\README.md | copy README.md dist\README.md | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Calvin Rose
					Calvin Rose