Bug 1287048 - Part 2. Get rid of JS_CPU_* macro. r=glandium
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Tue, 15 Nov 2016 11:57:18 +0900
changeset 324603 a4250c28aabc8cf5bf23cd6c7f825b3b2d181aa1
parent 324602 ca8ed6bab9f29504d4fbcdd8124df37878374b4f
child 324604 ea5eda08e2ccef5747fb9e87027a0d3f63e54b04
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersglandium
bugs1287048
milestone53.0a1
Bug 1287048 - Part 2. Get rid of JS_CPU_* macro. r=glandium MozReview-Commit-ID: DCLiuOVPHKx
js/src/old-configure.in
--- a/js/src/old-configure.in
+++ b/js/src/old-configure.in
@@ -929,36 +929,19 @@ AC_DEFINE_UNQUOTED(D_INO,$DIRENT_INO)
 
 if test -z "$COMPILE_ENVIRONMENT"; then
     SKIP_COMPILER_CHECKS=1
     SKIP_LIBRARY_CHECKS=1
 fi
 
 dnl Configure JIT support
 
-case "$target" in
-i?86-*)
-    ENABLE_ION=1
-    AC_DEFINE(JS_CPU_X86)
-    ;;
-x86_64*-*)
+case "$CPU_ARCH" in
+x86|x86_64|arm|mips*)
     ENABLE_ION=1
-    AC_DEFINE(JS_CPU_X64)
-    ;;
-arm*-*)
-    ENABLE_ION=1
-    AC_DEFINE(JS_CPU_ARM)
-    ;;
-sparc-*)
-dnl ENABLE_ION=0
-    AC_DEFINE(JS_CPU_SPARC)
-    ;;
-mips*-*)
-    ENABLE_ION=1
-    AC_DEFINE(JS_CPU_MIPS)
     ;;
 esac
 
 if test "$HAVE_64BIT_BUILD" ; then
     AC_DEFINE(JS_PUNBOX64)
 else
     AC_DEFINE(JS_NUNBOX32)
 fi