Skip to content

Commit c85d8d4

Browse files
committed
Disable debugging info to work around rust-lang/rust#25270
1 parent c290a18 commit c85d8d4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Makefile.
33
RUSTC ?= rustc
44
RUSTDOC ?= rustdoc
5-
RUSTC_FLAGS += -g -L$(BUILD_PLATFORM_DIR) # Common regardless of platform
5+
RUSTC_FLAGS += -L$(BUILD_PLATFORM_DIR) # Common regardless of platform
66
CARGO ?= cargo
77
TOOLCHAIN = arm-none-eabi-
88
OBJCOPY ?= $(TOOLCHAIN)objcopy

src/chips/nrf51822/Makefile.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARCH = cortex-m0
33
RUSTC_FLAGS += -C opt-level=3 -Z no-landing-pads
44
RUSTC_FLAGS += --target $(SRC_DIR)chips/$(CHIP)/target.json
55
RUSTC_FLAGS += -Ctarget-cpu=$(ARCH) -C relocation_model=static
6-
RUSTC_FLAGS += -g -C no-stack-check
6+
RUSTC_FLAGS += -C no-stack-check
77

88
CFLAGS_BASE = -mcpu=$(ARCH) -mthumb -mfloat-abi=soft
99
CFLAGS += $(CFLAGS_BASE) -g -O3 -std=gnu99 -nostartfiles

src/chips/sam4l/Makefile.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUST_TARGET ?= $(SRC_DIR)chips/sam4l/target.json
55
RUSTC_FLAGS += -C opt-level=3 -Z no-landing-pads
66
RUSTC_FLAGS += --target $(RUST_TARGET)
77
RUSTC_FLAGS += -Ctarget-cpu=cortex-m4 -C relocation_model=static
8-
RUSTC_FLAGS += -g -C no-stack-check -C soft-float -C target-feature="+soft-float"
8+
RUSTC_FLAGS += -C no-stack-check -C soft-float -C target-feature="+soft-float"
99

1010
CFLAGS_BASE = -mcpu=$(ARCH) -mthumb -mfloat-abi=soft
1111
CFLAGS += $(CFLAGS_BASE) -g -O3 -std=gnu99 -nostartfiles

0 commit comments

Comments
 (0)