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

Commit 96626ab

Browse files
committed
Rust: Disable emutls on MIPS; old GCC can't take it
1 parent 4ed12bd commit 96626ab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

make/platform/triple.mk

+6
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ ifeq ($(TargetTriple),arm-linux-androideabi)
5454
sync_fetch_and_umin_8
5555
endif
5656

57+
# Disable emutls on MIPS
58+
# Rust uses GCC 4.4 to cross-compile, which doesn't have some builtins
59+
ifneq (,$(findstring mips,$(TargetTriple)))
60+
CommonDisabledFunctions := emutls
61+
endif
62+
5763
# Clear cache is builtin on aarch64-apple-ios
5864
# arm64 and aarch64 are synonims, but iOS targets usually use arm64 (history reasons)
5965
ifeq (aarch64-apple-ios,$(subst arm64,aarch64,$(TargetTriple)))

0 commit comments

Comments
 (0)