mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
To avoid errors where a non-exception .o is on the stack between a throw
and a handler, which would produce errors like: terminate called after throwing an instance of 'std::string' we must comment out setting -fno-exceptions until PR797 is completely fixed. Once libraries like lib/System and lib/Support are exception free, we can turn it back on. llvm-svn: 29768
This commit is contained in:
parent
10758a6ae5
commit
700153c9dd
@ -206,6 +206,11 @@ else
|
||||
OPTIMIZE_OPTION := -O2
|
||||
endif
|
||||
|
||||
# IF REQUIRES_EH=1 is specified then don't disable exceptions
|
||||
#ifndef REQUIRES_EH
|
||||
# CXX.Flags += -fno-exceptions
|
||||
#endif
|
||||
|
||||
ifdef ENABLE_PROFILING
|
||||
BuildMode := Profile
|
||||
CXX.Flags := $(OPTIMIZE_OPTION) -pg -g
|
||||
@ -249,11 +254,6 @@ else
|
||||
C.Flags += -D_DEBUG
|
||||
endif
|
||||
|
||||
# IF REQUIRES_EH=1 is specified then don't disable exceptions
|
||||
ifndef REQUIRES_EH
|
||||
CXX.Flags += -fno-exceptions
|
||||
endif
|
||||
|
||||
CXX.Flags += $(CXXFLAGS)
|
||||
C.Flags += $(CFLAGS)
|
||||
CPP.BaseFlags += $(CPPFLAGS)
|
||||
|
Loading…
Reference in New Issue
Block a user