Skip to content

Commit e6a18d1

Browse files
committed
fix(ci): enable RUST_BACKTRACE for Windows builds and adjust Makefile for debugging
1 parent 937fc8d commit e6a18d1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ jobs:
147147

148148
- name: build sqlite-mcp
149149
run: ${{ matrix.name == 'linux-musl' && matrix.arch == 'arm64' && 'docker exec alpine' || '' }} make extension ${{ matrix.make && matrix.make || ''}}
150+
env:
151+
RUST_BACKTRACE: ${{ matrix.name == 'windows' && '1' || '0' }}
150152

151153
- name: create keychain for codesign
152154
if: matrix.os == 'macos-15'

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,11 @@ ifeq ($(PLATFORM),windows)
5757
TARGET := $(DIST_DIR)/mcp.dll
5858
LDFLAGS += -shared -Wl,--gc-sections
5959
DEF_FILE := $(BUILD_DIR)/mcp.def
60-
STRIP = strip --strip-unneeded $@
60+
# STRIP = strip --strip-unneeded $@ # Disabled for debugging
61+
STRIP = @echo "Skipping strip for debugging"
6162
LIBS = -lmcp_ffi -lws2_32 -luserenv -lbcrypt -lntdll -lgcc -lgcc_eh -lpthread
6263
T_LIBS = -lm
63-
RUSTFLAGS = -C opt-level=z -C lto=fat -C codegen-units=1 -C strip=symbols
64+
RUSTFLAGS = -g # Debug symbols for backtrace
6465
else ifeq ($(PLATFORM),macos)
6566
TARGET := $(DIST_DIR)/mcp.dylib
6667
MACOS_MIN_VERSION = 11.0

0 commit comments

Comments
 (0)