forked from Ports/perfect_dark
port: use cv2pdb on windows executables if present
This commit is contained in:
1 parent
b1b17e21c1
commit
06f2283180
2 files changed
+11
-1
No files matched your search
@@ -154,6 +154,13 @@ ifneq (,$(findstring windows,$(TARGET_PLATFORM)))
|
|||||||
TARGET_LDFLAGS := $(shell pkg-config sdl2 --libs) -lz -lopengl32 -static-libstdc++ -ldbghelp
|
TARGET_LDFLAGS := $(shell pkg-config sdl2 --libs) -lz -lopengl32 -static-libstdc++ -ldbghelp
|
||||||
# on windows/mingw we need this to be built with a 32-bit compiler so it finds the correct libs
|
# on windows/mingw we need this to be built with a 32-bit compiler so it finds the correct libs
|
||||||
TOOLCHAIN ?= i686-w64-mingw32-
|
TOOLCHAIN ?= i686-w64-mingw32-
|
||||||
|
# check if cv2pdb is present
|
||||||
|
ifeq ($(CV2PDB),)
|
||||||
|
CV2PDB := cv2pdb
|
||||||
|
ifeq (,$(shell which cv2pdb 2>/dev/null))
|
||||||
|
CV2PDB :=
|
||||||
|
endif
|
||||||
|
endif
|
||||||
else # assume *nix
|
else # assume *nix
|
||||||
TARGET_CFLAGS := $(shell pkg-config sdl2 --cflags-only-I)
|
TARGET_CFLAGS := $(shell pkg-config sdl2 --cflags-only-I)
|
||||||
TARGET_LDFLAGS := $(shell pkg-config sdl2 --libs) -lGL -lz -ldl
|
TARGET_LDFLAGS := $(shell pkg-config sdl2 --libs) -lGL -lz -ldl
|
||||||
@@ -305,6 +312,9 @@ $(G_DIR)/tiles/%.h: $(A_DIR)/tiles/%.json
|
|||||||
|
|
||||||
$(BIN): $(O_FILES)
|
$(BIN): $(O_FILES)
|
||||||
$(LD) $(COMMON_CFLAGS) $(OPT_LVL) -o $(BIN) $^ $(LDFLAGS)
|
$(LD) $(COMMON_CFLAGS) $(OPT_LVL) -o $(BIN) $^ $(LDFLAGS)
|
||||||
|
ifneq ($(CV2PDB),)
|
||||||
|
$(CV2PDB) $(BIN)
|
||||||
|
endif
|
||||||
|
|
||||||
$(B_DIR)/%.o: %.c
|
$(B_DIR)/%.o: %.c
|
||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@
|
|||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
|
|
||||||
#define CRASH_MAX_MSG 4096
|
#define CRASH_MAX_MSG 8192
|
||||||
#define CRASH_MAX_SYM 256
|
#define CRASH_MAX_SYM 256
|
||||||
#define CRASH_MAX_FRAMES 32
|
#define CRASH_MAX_FRAMES 32
|
||||||
#define CRASH_MSG(...) \
|
#define CRASH_MSG(...) \
|
||||||
|
|||||||
Reference in new issue
Block a user