mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Update build.bat and Makefile
This commit is contained in:
@@ -46,7 +46,7 @@ debug:
|
|||||||
release:
|
release:
|
||||||
$(CC) src/main.cpp src/libtommath.c $(DISABLED_WARNINGS) $(CFLAGS) -O3 $(LDFLAGS) -o odin
|
$(CC) src/main.cpp src/libtommath.c $(DISABLED_WARNINGS) $(CFLAGS) -O3 $(LDFLAGS) -o odin
|
||||||
|
|
||||||
release-native:
|
release_native:
|
||||||
$(CC) src/main.cpp src/libtommath.c $(DISABLED_WARNINGS) $(CFLAGS) -O3 -march=native $(LDFLAGS) -o odin
|
$(CC) src/main.cpp src/libtommath.c $(DISABLED_WARNINGS) $(CFLAGS) -O3 -march=native $(LDFLAGS) -o odin
|
||||||
|
|
||||||
nightly:
|
nightly:
|
||||||
|
|||||||
@@ -71,18 +71,9 @@ del *.pdb > NUL 2> NUL
|
|||||||
del *.ilk > NUL 2> NUL
|
del *.ilk > NUL 2> NUL
|
||||||
|
|
||||||
cl %compiler_settings% "src\main.cpp" "src\libtommath.c" /link %linker_settings% -OUT:%exe_name%
|
cl %compiler_settings% "src\main.cpp" "src\libtommath.c" /link %linker_settings% -OUT:%exe_name%
|
||||||
rem cl %compiler_settings% "src\main.cpp" /link %linker_settings% -OUT:%exe_name%
|
|
||||||
|
|
||||||
if %errorlevel% neq 0 goto end_of_build
|
if %errorlevel% neq 0 goto end_of_build
|
||||||
|
if %release_mode% EQU 0 odin run examples/demo/demo.odin
|
||||||
odin run examples/demo
|
|
||||||
rem odin run examples/bug -show-more-timings -threaded-checker
|
|
||||||
rem odin check examples/demo -threaded-checker
|
|
||||||
rem odin build examples/demo
|
|
||||||
rem odin run examples/demo -threaded-checker
|
|
||||||
rem odin run examples/bug -show-more-timings
|
|
||||||
rem if %release_mode% EQU 0 odin check examples/bug -show-more-timings
|
|
||||||
rem if %release_mode% EQU 0 odin check examples/bug
|
|
||||||
|
|
||||||
del *.obj > NUL 2> NUL
|
del *.obj > NUL 2> NUL
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable: 4146)
|
|
||||||
#include "libtommath/tommath.h"
|
#include "libtommath/tommath.h"
|
||||||
#pragma warning(pop)
|
|
||||||
|
|
||||||
#ifndef MAX_BIG_INT_SHIFT
|
#ifndef MAX_BIG_INT_SHIFT
|
||||||
#define MAX_BIG_INT_SHIFT 1024
|
#define MAX_BIG_INT_SHIFT 1024
|
||||||
|
|||||||
Reference in New Issue
Block a user