diff options
| author | raysan5 <[email protected]> | 2021-07-09 18:49:36 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-07-09 18:49:36 +0200 |
| commit | ae230dae4606ab1c911ed41a90153a79cd4859f5 (patch) | |
| tree | 198d3aad6ae417fd974b2f2edbf33f4c86554747 | |
| parent | 7062415aec2c8062f0b5024f745dd74bd3425f81 (diff) | |
| download | raylib-ae230dae4606ab1c911ed41a90153a79cd4859f5.tar.gz raylib-ae230dae4606ab1c911ed41a90153a79cd4859f5.zip | |
Update Makefile
| -rw-r--r-- | src/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile index abe5a084..3a90dd92 100644 --- a/src/Makefile +++ b/src/Makefile @@ -297,10 +297,8 @@ endif ifeq ($(RAYLIB_BUILD_MODE),DEBUG) CFLAGS += -g - ifeq ($(PLATFORM),PLATFORM_WEB) - CFLAGS += -s ASSERTIONS=1 --profiling - endif endif + ifeq ($(RAYLIB_BUILD_MODE),RELEASE) ifeq ($(PLATFORM),PLATFORM_WEB) CFLAGS += -Os @@ -334,6 +332,9 @@ ifeq ($(PLATFORM),PLATFORM_WEB) # --memory-init-file 0 # to avoid an external memory initialization code file (.mem) # --preload-file resources # specify a resources folder for data compilation CFLAGS += -s USE_GLFW=3 + ifeq ($(RAYLIB_BUILD_MODE),DEBUG) + CFLAGS += -s ASSERTIONS=1 --profiling + endif endif ifeq ($(PLATFORM),PLATFORM_ANDROID) # Compiler flags for arquitecture |
