Bug 1248391 - Unbreak --enable-rust on BSDs after bug 1177599. r=ted a=ritu

MozReview-Commit-ID: 5f2AlXt06ec
This commit is contained in:
Jan Beich 2016-03-24 15:10:44 +00:00
parent a335d1a5e3
commit a7b5b8c22f

View File

@ -47,6 +47,34 @@ AC_DEFUN([MOZ_RUST_SUPPORT], [
# https://github.com/rust-lang/rust/tree/master/mk/cfg
rust_target=
case "$target" in
# Bitrig
x86_64-*-bitrig*)
rust_target=x86_64-unknown-bitrig
;;
# DragonFly
x86_64-*-dragonfly*)
rust_target=x86_64-unknown-dragonfly
;;
# FreeBSD, GNU/kFreeBSD
i*86-*-*freebsd*)
rust_target=i686-unknown-freebsd
;;
x86_64-*-*freebsd*)
rust_target=x86_64-unknown-freebsd
;;
# NetBSD
x86_64-*-netbsd*)
rust_target=x86_64-unknown-netbsd
;;
# OpenBSD
x86_64-*-openbsd*)
rust_target=x86_64-unknown-openbsd
;;
# Linux
i*86*linux-gnu)
rust_target=i686-unknown-linux-gnu