@@ -1621,27 +1621,6 @@ else
16211621 AC_MSG_RESULT ( [ no] )
16221622fi
16231623
1624- # Check for --enable-experimental-jit:
1625- AC_MSG_CHECKING ( [ for --enable-experimental-jit] )
1626- AC_ARG_ENABLE ( [ experimental-jit] ,
1627- [ AS_HELP_STRING ( [ --enable-experimental-jit] ,
1628- [ build the experimental just-in-time compiler (default is no)] ) ] ,
1629- [ ] ,
1630- [ enable_experimental_jit=no] )
1631- AS_VAR_IF ( [ enable_experimental_jit] ,
1632- [ no] ,
1633- [ ] ,
1634- [ AS_VAR_APPEND ( [ CFLAGS_NODIST] , [ " -D_Py_JIT"] )
1635- AS_VAR_SET ( [ REGEN_JIT_COMMAND] ,
1636- [ "\$(PYTHON_FOR_REGEN) \$(srcdir)/Tools/jit/build.py $host"] )
1637- AS_VAR_SET ( [ JIT_STENCILS_H] , [ "jit_stencils.h"] )
1638- AS_VAR_IF ( [ Py_DEBUG] ,
1639- [ true] ,
1640- [ AS_VAR_APPEND ( [ REGEN_JIT_COMMAND] , [ " --debug"] ) ] ,
1641- [ ] ) ] )
1642- AC_SUBST ( [ REGEN_JIT_COMMAND] )
1643- AC_SUBST ( [ JIT_STENCILS_H] )
1644- AC_MSG_RESULT ( [ $enable_experimental_jit] )
16451624
16461625# Enable optimization flags
16471626AC_SUBST ( [ DEF_MAKE_ALL_RULE] )
@@ -2436,42 +2415,50 @@ yes)
24362415 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
24372416 LIPO_32BIT_FLAGS=""
24382417 ARCH_RUN_32BIT=""
2418+ ARCH_TRIPPLES=`echo {ppc,i386}-apple-darwin`
24392419 ;;
24402420 64-bit)
24412421 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
24422422 LIPO_32BIT_FLAGS=""
24432423 ARCH_RUN_32BIT="true"
2424+ ARCH_TRIPPLES=`echo {ppc64,x86_64}-apple-darwin`
24442425 ;;
24452426 all)
24462427 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
24472428 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
24482429 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
2430+ ARCH_TRIPPLES=`echo {i386,ppc,ppc64,x86_64}-apple-darwin`
24492431 ;;
24502432 universal2)
24512433 UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64"
24522434 LIPO_32BIT_FLAGS=""
24532435 LIPO_INTEL64_FLAGS="-extract x86_64"
24542436 ARCH_RUN_32BIT="true"
2437+ ARCH_TRIPPLES=`echo {aarch64,x86_64}-apple-darwin`
24552438 ;;
24562439 intel)
24572440 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
24582441 LIPO_32BIT_FLAGS="-extract i386"
24592442 ARCH_RUN_32BIT="/usr/bin/arch -i386"
2443+ ARCH_TRIPPLES=`echo {i386,x86_64}-apple-darwin`
24602444 ;;
24612445 intel-32)
24622446 UNIVERSAL_ARCH_FLAGS="-arch i386"
24632447 LIPO_32BIT_FLAGS=""
24642448 ARCH_RUN_32BIT=""
2449+ ARCH_TRIPPLES=i386-apple-darwin
24652450 ;;
24662451 intel-64)
24672452 UNIVERSAL_ARCH_FLAGS="-arch x86_64"
24682453 LIPO_32BIT_FLAGS=""
24692454 ARCH_RUN_32BIT="true"
2455+ ARCH_TRIPPLES=x86_64-apple-darwin
24702456 ;;
24712457 3-way)
24722458 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
24732459 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
24742460 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
2461+ ARCH_TRIPPLES=`echo {i386,ppc,x86_64}-apple-darwin`
24752462 ;;
24762463 *)
24772464 AC_MSG_ERROR ( [ proper usage is --with-universal-arch=universal2|32-bit|64-bit|all|intel|3-way] )
@@ -2565,6 +2552,28 @@ yes)
25652552 ;;
25662553esac
25672554
2555+ # Check for --enable-experimental-jit:
2556+ AC_MSG_CHECKING ( [ for --enable-experimental-jit] )
2557+ AC_ARG_ENABLE ( [ experimental-jit] ,
2558+ [ AS_HELP_STRING ( [ --enable-experimental-jit] ,
2559+ [ build the experimental just-in-time compiler (default is no)] ) ] ,
2560+ [ ] ,
2561+ [ enable_experimental_jit=no] )
2562+ AS_VAR_IF ( [ enable_experimental_jit] ,
2563+ [ no] ,
2564+ [ ] ,
2565+ [ AS_VAR_APPEND ( [ CFLAGS_NODIST] , [ " -D_Py_JIT"] )
2566+ AS_VAR_SET ( [ REGEN_JIT_COMMAND] ,
2567+ [ "\$(PYTHON_FOR_REGEN) \$(srcdir)/Tools/jit/build.py ${ARCH_TRIPPLES:-$host}"] )
2568+ AS_VAR_SET ( [ JIT_STENCILS_H] , [ "jit_stencils.h"] )
2569+ AS_VAR_IF ( [ Py_DEBUG] ,
2570+ [ true] ,
2571+ [ AS_VAR_APPEND ( [ REGEN_JIT_COMMAND] , [ " --debug"] ) ] ,
2572+ [ ] ) ] )
2573+ AC_SUBST ( [ REGEN_JIT_COMMAND] )
2574+ AC_SUBST ( [ JIT_STENCILS_H] )
2575+ AC_MSG_RESULT ( [ $enable_experimental_jit] )
2576+
25682577case "$CC_BASENAME" in
25692578*mpicc*)
25702579 CFLAGS_NODIST="$CFLAGS_NODIST"
0 commit comments