Skip to content
Snippets Groups Projects
Commit 0ad0a39a authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

makefiles: Split GDB settings from toolchain

parent 7713bede
No related branches found
No related tags found
No related merge requests found
export GDBPREFIX ?= $(PREFIX)
export CC = $(PREFIX)gcc
export CXX = $(PREFIX)g++
export CCAS ?= $(CC)
......@@ -16,4 +15,5 @@ $(warning objcopy not found. Hex file will not be created.)
export OBJCOPY = true
endif
export OBJDUMP = $(PREFIX)objdump
export GDB = $(GDBPREFIX)gdb
# We use GDB for debugging
include $(RIOTMAKE)/tools/gdb.inc.mk
export GDBPREFIX ?= $(PREFIX)
export LLVMPREFIX ?= llvm-
# Apple XCode doesn't prefix its tools with llvm-, but manually installed LLVM
# on OSX might have the llvm- prefix, we can't simply test against uname -s.
......@@ -25,9 +24,10 @@ export OBJCOPY = true
endif
export OBJDUMP = $(LLVMPREFIX)objdump
export SIZE = $(LLVMPREFIX)size
export GDB = $(GDBPREFIX)gdb
# LLVM lacks a binutils strip tool as well...
#export STRIP = $(LLVMPREFIX)strip
# We use GDB for debugging for now, maybe LLDB will be supported in the future.
include $(RIOTMAKE)/tools/gdb.inc.mk
ifneq (,$(TARGET_ARCH))
# Clang on Linux uses GCC's C++ headers and libstdc++ (installed with GCC)
......
export GDBPREFIX ?= $(PREFIX)
export GDB ?= $(GDBPREFIX)gdb
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment