From a1a1668dcf024033b0b011eaf39bc89e505ee86f Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 11 Jul 2021 16:23:25 +0100 Subject: [PATCH] Update build.bat and Makefile --- Makefile | 2 +- build.bat | 11 +---------- src/big_int.cpp | 3 --- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index 00d7d27d8..b0956dd1e 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ debug: release: $(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 nightly: diff --git a/build.bat b/build.bat index 0e108653a..c3ab0a008 100644 --- a/build.bat +++ b/build.bat @@ -71,18 +71,9 @@ del *.pdb > NUL 2> NUL del *.ilk > NUL 2> NUL 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 - -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 +if %release_mode% EQU 0 odin run examples/demo/demo.odin del *.obj > NUL 2> NUL diff --git a/src/big_int.cpp b/src/big_int.cpp index 9ed753753..231064bea 100644 --- a/src/big_int.cpp +++ b/src/big_int.cpp @@ -1,7 +1,4 @@ -#pragma warning(push) -#pragma warning(disable: 4146) #include "libtommath/tommath.h" -#pragma warning(pop) #ifndef MAX_BIG_INT_SHIFT #define MAX_BIG_INT_SHIFT 1024