mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-09 22:24:14 +03:00
Makefile: strip build path prefix from debug info
This commit is contained in:
3
Makefile
3
Makefile
@@ -6,6 +6,7 @@ OBJCOPY := $(TOOLCHAIN_PREFIX)objcopy
|
||||
|
||||
XTENSA_LIBS ?= $(shell $(CC) -print-sysroot)
|
||||
|
||||
TOOLCHAIN_DIR=$(shell cd $(XTENSA_LIBS)/../../; pwd)
|
||||
|
||||
OBJ_FILES := \
|
||||
crypto/aes.o \
|
||||
@@ -45,6 +46,8 @@ CFLAGS += -Wall -Os -g -O2 -Wpointer-arith -Wl,-EL -nostdlib -mlongcalls -mno-te
|
||||
|
||||
CFLAGS += -ffunction-sections -fdata-sections
|
||||
|
||||
CFLAGS += -fdebug-prefix-map=$(PWD)= -fdebug-prefix-map=$(TOOLCHAIN_DIR)=xtensa-lx106-elf -gno-record-gcc-switches
|
||||
|
||||
MFORCE32 := $(shell $(CC) --help=target | grep mforce-l32)
|
||||
ifneq ($(MFORCE32),)
|
||||
# If the compiler supports the -mforce-l32 flag, the compiler will generate correct code for loading
|
||||
|
Reference in New Issue
Block a user