Correct build.bat

This commit is contained in:
gingerBill
2026-09-01 09:35:24 +01:00
parent 3c46e132e0
commit b209782eb2

View File

@@ -121,55 +121,20 @@ set linker_settings=%libs% %odin_res% %linker_flags%
del *.pdb > NUL 2> NUL
del *.ilk > NUL 2> NUL
pushd core\rexcode\isa\arm64\tablegen\
W:\Odin\odin run .
W:\Odin\odin run generated
rem W:\Odin\odin run merged
popd
if %errorlevel% neq 0 goto end_of_build
rem pushd core\rexcode\isa\x86\tablegen\
rem W:\Odin\odin run .
rem W:\Odin\odin run generated
rem popd
rem if %errorlevel% neq 0 goto end_of_build
rem pushd core\rexcode\isa\riscv\tablegen\
rem W:\Odin\odin run .
rem W:\Odin\odin run generated
rem popd
rem if %errorlevel% neq 0 goto end_of_build
pushd core\rexcode\isa\x86\tablegen\cpp-compiler
W:\Odin\odin run .
popd
if %errorlevel% neq 0 goto end_of_build
pushd core\rexcode\isa\riscv\tablegen\cpp-compiler
W:\Odin\odin run .
popd
if %errorlevel% neq 0 goto end_of_build
pushd core\rexcode\isa\arm64\tablegen\cpp-compiler
W:\Odin\odin run .
popd
if %errorlevel% neq 0 goto end_of_build
rem rc %rc_flags% %odin_rc%
rc %rc_flags% %odin_rc%
cl %compiler_settings% "src\main.cpp" "src\libtommath.cpp" /link %linker_settings% -OUT:%exe_name%
if %errorlevel% neq 0 goto end_of_build
rem mt -nologo -inputresource:%exe_name%;#1 -manifest misc\odin.manifest -outputresource:%exe_name%;#1 -validate_manifest -identity:"odin, processorArchitecture=amd64, version=%odin_version_full%, type=win32"
rem if %errorlevel% neq 0 goto end_of_build
mt -nologo -inputresource:%exe_name%;#1 -manifest misc\odin.manifest -outputresource:%exe_name%;#1 -validate_manifest -identity:"odin, processorArchitecture=amd64, version=%odin_version_full%, type=win32"
if %errorlevel% neq 0 goto end_of_build
rem call build_vendor.bat
rem if %errorlevel% neq 0 goto end_of_build
call build_vendor.bat
if %errorlevel% neq 0 goto end_of_build
rem rem If the demo doesn't run for you and your CPU is more than a decade old, try -microarch:native
rem if %release_mode% EQU 0 odin run examples/demo -vet -strict-style -resource:examples/demo/demo.rc -- Hellope World
rem If the demo doesn't run for you and your CPU is more than a decade old, try -microarch:native
if %release_mode% EQU 0 odin run examples/demo -vet -strict-style -resource:examples/demo/demo.rc -- Hellope World
rem rem Many non-compiler devs seem to run debug build but don't realize.
rem if %release_mode% EQU 0 echo: & echo Debug compiler built. Note: run "build.bat release" if you want a faster, release mode compiler.
odin build examples/bug -vet -target:darwin_arm64
rem odin build examples/bug -vet
rem odin run examples/bug -vet
rem Many non-compiler devs seem to run debug build but don't realize.
if %release_mode% EQU 0 echo: & echo Debug compiler built. Note: run "build.bat release" if you want a faster, release mode compiler.
del *.obj > NUL 2> NUL