From ae230dae4606ab1c911ed41a90153a79cd4859f5 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Fri, 9 Jul 2021 18:49:36 +0200 Subject: [PATCH] Update Makefile --- src/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index abe5a084a..3a90dd92a 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