mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
common.mak: Pass -fexceptions to clang and clang++.
This results in generation of .eh_frame sections. These sections can be discarded during final linking, or included if exception handling is desired. For exception handling to work, all sources must be built with -fexceptions.
This commit is contained in:
parent
69c2a705bf
commit
d03dabb460
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@ endif
|
||||||
#
|
#
|
||||||
INCLUDES = -I$(MSCDIR)/software/include/base -I$(MSCDIR)/software/include -I$(MSCDIR)/common
|
INCLUDES = -I$(MSCDIR)/software/include/base -I$(MSCDIR)/software/include -I$(MSCDIR)/common
|
||||||
COMMONFLAGS = -Os $(CPUFLAGS) -Wall -fno-builtin -nostdinc -DMSC_GIT_ID=$(MSC_GIT_ID) $(INCLUDES)
|
COMMONFLAGS = -Os $(CPUFLAGS) -Wall -fno-builtin -nostdinc -DMSC_GIT_ID=$(MSC_GIT_ID) $(INCLUDES)
|
||||||
CFLAGS = $(COMMONFLAGS) -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
|
CFLAGS = $(COMMONFLAGS) -fexceptions -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
|
||||||
CXXFLAGS = $(COMMONFLAGS) -fno-exceptions -ffreestanding
|
CXXFLAGS = $(COMMONFLAGS) -fexceptions -fno-rtti -ffreestanding
|
||||||
LDFLAGS = -nostdlib -nodefaultlibs -L$(MSCDIR)/software/include
|
LDFLAGS = -nostdlib -nodefaultlibs -L$(MSCDIR)/software/include
|
||||||
|
|
||||||
# compile and generate dependencies, based on
|
# compile and generate dependencies, based on
|
||||||
|
|
Loading…
Reference in a new issue