Skip to content

Commit

Permalink
Auto merge of #35004 - asomers:master, r=alexcrichton
Browse files Browse the repository at this point in the history
Fix build of compiler-rt on FreeBSD

Broken since ee6011f removed cmake from the
process.  There are likely other platforms still broken, but I didn't test on them.
  • Loading branch information
bors authored Jul 31, 2016
2 parents 1225e12 + 8604c54 commit c267ab4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions mk/rt.mk
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,11 @@ COMPRT_OBJS_$(1) += emutls.o
endif

ifeq ($$(findstring msvc,$(1)),)

ifeq ($$(findstring freebsd,$(1)),)
COMPRT_OBJS_$(1) += gcc_personality_v0.o
endif

COMPRT_OBJS_$(1) += emutls.o

ifeq ($$(findstring x86_64,$(1)),x86_64)
Expand Down
4 changes: 3 additions & 1 deletion src/bootstrap/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,9 @@ pub fn compiler_rt(build: &Build, target: &str) {
]);
}
} else {
sources.push("gcc_personality_v0.c");
if !target.contains("freebsd") {
sources.push("gcc_personality_v0.c");
}

if target.contains("x86_64") {
sources.extend(vec![
Expand Down

0 comments on commit c267ab4

Please sign in to comment.