Skip to content

Commit 7df5c0f

Browse files
committed
Auto merge of #39425 - jakllsch:netbsd-a, r=alexcrichton
Don't build gcc_personality_v0.c on NetBSD either
2 parents 1b5c7ac + d10a509 commit 7df5c0f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mk/rt.mk

+2
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,11 @@ endif
552552
ifeq ($$(findstring msvc,$(1)),)
553553

554554
ifeq ($$(findstring freebsd,$(1)),)
555+
ifeq ($$(findstring netbsd,$(1)),)
555556
$(call ADD_INTRINSIC,$(1),gcc_personality_v0.o)
556557
endif
557558
endif
559+
endif
558560

559561
ifeq ($$(findstring aarch64,$(1)),aarch64)
560562
$(foreach intrinsic,comparetf2.o \

src/libcompiler_builtins/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ fn main() {
240240
sources.extend(&["x86_64/floatdidf.c", "x86_64/floatdisf.c", "x86_64/floatdixf.c"]);
241241
}
242242
} else {
243-
if !target.contains("freebsd") {
243+
if !target.contains("freebsd") && !target.contains("netbsd") {
244244
sources.extend(&["gcc_personality_v0.c"]);
245245
}
246246

0 commit comments

Comments
 (0)