mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-16 12:30:48 +01:00
debugger.mk, defs-cpp.mk: More consistent compiler flags
Implement more consistent handling of flags -std=xx, -gdb, -gdwarf-x. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
68f25261ba
commit
2a9cdc5540
2 changed files with 18 additions and 20 deletions
|
|
@ -1,12 +1,3 @@
|
|||
ifeq "$(COMPILER_SUITE)" "gcc"
|
||||
DEBUGGER = gdb
|
||||
endif
|
||||
|
||||
ifeq "$(COMPILER_SUITE)" "clang"
|
||||
DEBUGGER = lldb
|
||||
endif
|
||||
|
||||
|
||||
CORE_DUMPER = $(shell echo -e "quit" | $(DEBUGGER) --core=$(CORE) 2>&1 | \
|
||||
$(SED) '/Core was generated/ !d; s/Core was generated by `//; s/ .*//')
|
||||
ifeq ($(CORE_DUMPER),)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue