Skip to content

Commit 2c50da9

Browse files
committed
REVIEWED: -sASSERTIONS usage by linker #4717
1 parent d48b8af commit 2c50da9

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

examples/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,6 @@ CFLAGS = -Wall -std=c99 -D_DEFAULT_SOURCE -Wno-missing-braces -Wunused-result
233233

234234
ifeq ($(BUILD_MODE),DEBUG)
235235
CFLAGS += -g -D_DEBUG
236-
ifeq ($(TARGET_PLATFORM),$(filter $(TARGET_PLATFORM),PLATFORM_WEB PLATFORM_WEB_RGFW))
237-
CFLAGS += -sASSERTIONS=1 --profiling
238-
endif
239236
else
240237
ifeq ($(TARGET_PLATFORM),$(filter $(TARGET_PLATFORM),PLATFORM_WEB PLATFORM_WEB_RGFW))
241238
ifeq ($(BUILD_WEB_ASYNCIFY),TRUE)

examples/Makefile.Web

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,6 @@ CFLAGS = -Wall -std=c99 -D_DEFAULT_SOURCE -Wno-missing-braces -Wunused-result
189189

190190
ifeq ($(BUILD_MODE),DEBUG)
191191
CFLAGS += -g -D_DEBUG
192-
ifeq ($(PLATFORM),$(filter $(PLATFORM),PLATFORM_WEB PLATFORM_WEB_RGFW))
193-
CFLAGS += -sASSERTIONS=1 --profiling
194-
endif
195192
else
196193
ifeq ($(PLATFORM),$(filter $(PLATFORM),PLATFORM_WEB PLATFORM_WEB_RGFW))
197194
ifeq ($(BUILD_WEB_ASYNCIFY),TRUE)

src/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ ifeq ($(TARGET_PLATFORM),$(filter $(TARGET_PLATFORM),PLATFORM_WEB PLATFORM_WEB_R
384384
# --source-map-base # allow debugging in browser with source map
385385
# --shell-file shell.html # define a custom shell .html and output extension
386386
ifeq ($(RAYLIB_BUILD_MODE),DEBUG)
387-
CFLAGS += -sASSERTIONS=1 --profiling
387+
CFLAGS += --profiling
388388
endif
389389
endif
390390
ifeq ($(TARGET_PLATFORM),PLATFORM_ANDROID)
@@ -533,6 +533,11 @@ ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_SDL)
533533
LDFLAGS += -Wl,-soname,lib$(RAYLIB_LIB_NAME).so.$(RAYLIB_API_VERSION)
534534
LDFLAGS += -L$(SDL_LIBRARY_PATH)
535535
endif
536+
ifeq ($(TARGET_PLATFORM),$(filter $(TARGET_PLATFORM),PLATFORM_WEB PLATFORM_WEB_RGFW))
537+
ifeq ($(RAYLIB_BUILD_MODE),DEBUG)
538+
LDFLAGS += -sASSERTIONS=1
539+
endif
540+
endif
536541
ifeq ($(TARGET_PLATFORM),PLATFORM_DRM)
537542
LDFLAGS += -Wl,-soname,lib$(RAYLIB_LIB_NAME).so.$(RAYLIB_API_VERSION)
538543
ifeq ($(USE_RPI_CROSSCOMPILER), TRUE)

0 commit comments

Comments
 (0)