1
0
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:
Ivan Grokhotkov
2017-04-29 22:52:55 +08:00
parent 78c24497f9
commit bddda2a0cf

View File

@@ -6,6 +6,7 @@ OBJCOPY := $(TOOLCHAIN_PREFIX)objcopy
XTENSA_LIBS ?= $(shell $(CC) -print-sysroot) XTENSA_LIBS ?= $(shell $(CC) -print-sysroot)
TOOLCHAIN_DIR=$(shell cd $(XTENSA_LIBS)/../../; pwd)
OBJ_FILES := \ OBJ_FILES := \
crypto/aes.o \ 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 += -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) MFORCE32 := $(shell $(CC) --help=target | grep mforce-l32)
ifneq ($(MFORCE32),) ifneq ($(MFORCE32),)
# If the compiler supports the -mforce-l32 flag, the compiler will generate correct code for loading # If the compiler supports the -mforce-l32 flag, the compiler will generate correct code for loading