Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit e235715

Browse files
committed
build all C++ files in compiler-rt with -fno-exceptions
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145967 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent dd8d498 commit e235715

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ $(Tmp.ObjPath)/%.o: $(Tmp.SrcPath)/%.c $(Tmp.Dependencies) $(Tmp.ObjPath)/.dir
230230
$(Verb) $(Tmp.CC) $(Tmp.CFLAGS) -c -o $$@ $$<
231231
$(Tmp.ObjPath)/%.o: $(Tmp.SrcPath)/%.cc $(Tmp.Dependencies) $(Tmp.ObjPath)/.dir
232232
$(Summary) " COMPILE: $(Tmp.Name)/$(Tmp.Config)/$(Tmp.Arch): $$<"
233-
$(Verb) $(Tmp.CC) $(Tmp.CFLAGS) -c -o $$@ $$<
233+
$(Verb) $(Tmp.CC) $(Tmp.CFLAGS) -c $(COMMON_CXXFLAGS) -o $$@ $$<
234234
.PRECIOUS: $(Tmp.ObjPath)/.dir
235235

236236
endef

make/config.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ Echo := @echo
3939
ifndef Summary
4040
Summary = $(Echo)
4141
endif
42+
43+
###
44+
# Common compiler options
45+
COMMON_CXXFLAGS=-fno-exceptions

0 commit comments

Comments
 (0)