Remove address sanitizer for windows build, stb_sprintf acts weird with address sanitizer sometimes
This commit is contained in:
@@ -3,7 +3,7 @@ call ../misc/compile_setup.bat
|
|||||||
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cl -Fe:bld.exe ../code/build_main.cpp -WX -W3 -wd4200 -diagnostics:column -nologo -Zi -D_CRT_SECURE_NO_WARNINGS /fsanitize=address
|
cl -Fe:bld.exe ../code/build_main.cpp -WX -W3 -wd4200 -diagnostics:column -nologo -Zi -D_CRT_SECURE_NO_WARNINGS
|
||||||
cd ..
|
cd ..
|
||||||
build\bld.exe
|
build\bld.exe
|
||||||
|
|
||||||
|
|||||||
2
build.sh
2
build.sh
@@ -1,3 +1,3 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
gcc -o bld code/build_main.cpp -g
|
gcc -o bld code/build_main.cpp -g
|
||||||
./bld cc=clang
|
./bld
|
||||||
|
|||||||
@@ -84,6 +84,9 @@ IO_API bool IO__FatalErrorf(const char *file, int line, const char *msg, ...) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
IO_API void IO_Printf(const char *msg, ...) {
|
IO_API void IO_Printf(const char *msg, ...) {
|
||||||
|
// First try to use a static buffer. That can fail because the message
|
||||||
|
// can be bigger then the buffer. Allocate enough memory to fit in that
|
||||||
|
// case.
|
||||||
va_list args1;
|
va_list args1;
|
||||||
va_list args2;
|
va_list args2;
|
||||||
char buff[2048];
|
char buff[2048];
|
||||||
|
|||||||
Reference in New Issue
Block a user