Skip to content

Commit 3c96bd1

Browse files
committed
don't redo dsym for make with no changes and run it in the background
1 parent 8ba6d95 commit 3c96bd1

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

build/build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,10 @@ case "$MY_OS_NAME" in
495495
LDLIBS+=" -funwind-tables"
496496
LDLIBS+=" -rdynamic"
497497
LDLIBS+=" -Wl,-framework,Opengl"
498-
DSYM="dsymutil \${TARGET_GAME}"
498+
#
499+
# Run in the background as it is slow and is only needed for debugging
500+
#
501+
DSYM="dsymutil \${TARGET_GAME} &"
499502

500503
if [[ $OPT_DEV2 != "" ]]; then
501504
C_FLAGS+=" -fsanitize=address -fno-omit-frame-pointer"

src/Makefile.base

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ SRC_DIR=.
1818
.PHONY: all clean clobber
1919

2020
all: $(TARGET_GAME)
21-
$(DSYM)
2221

2322
# function to make object names from source files
2423
# (changes suffix to .o, encodes directory names so subdirectories in build dir aren't necessary)
@@ -82,7 +81,7 @@ $(eval $(BUILD_DIR)/$(call obj_name,$x): $x ;\
8281
# use file list instead of wildcard for link command so we don't accidentally
8382
# link with old object files for removed source files
8483
$(TARGET_GAME): $(OBJ_FILES)
85-
cd $(BUILD_DIR); $(CC) $(LDFLAGS) $(OBJECTS) $(LDLIBS) -o $(TARGET_GAME)
84+
cd $(BUILD_DIR); $(CC) $(LDFLAGS) $(OBJECTS) $(LDLIBS) -o $(TARGET_GAME); $(DSYM)
8685

8786
tidy:
8887
for src in $(CPP_3RD_PARTY_SOURCES) ; do \

0 commit comments

Comments
 (0)