diff options
| author | Ray <[email protected]> | 2019-06-12 12:08:39 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2019-06-12 12:08:39 +0200 |
| commit | 55380f84895327a7238e85292ae1a6a453309413 (patch) | |
| tree | 03d33f1391620f39d07b2e19baa5cda4600fc5d6 /src/Makefile | |
| parent | 266df463ccfe7fb3b993e69047d0a4d816d78bf8 (diff) | |
| download | raylib-55380f84895327a7238e85292ae1a6a453309413.tar.gz raylib-55380f84895327a7238e85292ae1a6a453309413.zip | |
Review DEBUG mode
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index 45ff5845..ef8b438d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -256,11 +256,14 @@ endif # -D_DEFAULT_SOURCE use with -std=c99 on Linux and PLATFORM_WEB, required for timespec # -Werror=pointer-arith catch unportable code that does direct arithmetic on void pointers # -fno-strict-aliasing jar_xm.h does shady stuff (breaks strict aliasing) -CFLAGS += -O1 -Wall -std=c99 -D_DEFAULT_SOURCE -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing +CFLAGS += -Wall -std=c99 -D_DEFAULT_SOURCE -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing ifeq ($(RAYLIB_BUILD_MODE),DEBUG) CFLAGS += -g endif +ifeq ($(RAYLIB_BUILD_MODE),RELEASE) + CFLAGS += -O1 +endif # Additional flags for compiler (if desired) # -Wextra enables some extra warning flags that are not enabled by -Wall |
