Skip to content

Commit

Permalink
Remove strip option (baked in release mode)
Browse files Browse the repository at this point in the history
  • Loading branch information
iWas-Coder committed Mar 25, 2024
1 parent adaf4d3 commit ab73ee7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 2 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,13 @@ endif
RAYLIB_CPPFLAGS = $(DISABLE_ASSERTS) -D PLATFORM_DESKTOP -I $(RAYLIB_SRC_DIR) -I $(RAYLIB_SRC_DIR)/external/glfw/$(HDR_DIR)
CPPFLAGS = $(DISABLE_ASSERTS) -I $(RAYLIB_SRC_DIR) -I $(HDR_DIR)
ifdef D
ifdef S
$(error Config options `D` and `S` are mutually exclusive)
endif
DEBUG_OPTS = -ggdb
else
RELEASE_OPTS = -pipe -O3
endif
ifdef S
STRIP_OPTS = -s
endif
RAYLIB_CFLAGS = -std=gnu99 $(DEBUG_OPTS) $(RELEASE_OPTS)
CFLAGS = -std=c17 -Wall -Wextra -pedantic -Werror -fanalyzer $(DEBUG_OPTS) $(RELEASE_OPTS)
CFLAGS = -std=c17 -Wall -Wextra -pedantic $(DEBUG_OPTS) $(RELEASE_OPTS)
LDFLAGS = -Wl,--build-id $(STRIP_OPTS) $(RELEASE_OPTS) -L $(BUILD_DIR) -lraylib -lm

# Build output
Expand All @@ -104,7 +99,7 @@ all: $(ALL_TGTS)
@:

game: $(RAYLIB_OUT) $(OUT)
@echo "Game: $(OUT) is ready ($(FULL_VERSION))"
@echo "INFO: $(OUT) is ready ($(FULL_VERSION))"

$(BUILD_DIR):
@echo " $(PPO_MKDIR) $@"
Expand Down
2 changes: 0 additions & 2 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ EXTRAVERSION =
Q = @
# Debug
D =
# Strip
S =

0 comments on commit ab73ee7

Please sign in to comment.