mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
Edit some comments slightly.
Set OS (build OS) and ARCH (target arch) based on the proper elements (SYSTEM, and CPU, respectively) of the CPU-COMPANY-SYSTEM tuples. Add OS and ARCH settings for PowerPC/Darwin (Mac OS X). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10047 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -245,48 +245,52 @@ dnl Check which host for which we're compiling. This will tell us which LLVM
|
|||||||
dnl compiler will be used for compiling SSA into object code.
|
dnl compiler will be used for compiling SSA into object code.
|
||||||
AC_CANONICAL_TARGET
|
AC_CANONICAL_TARGET
|
||||||
|
|
||||||
dnl
|
dnl Set the "OS" Makefile variable based on the system we are building on.
|
||||||
dnl Now, for some of our own magic:
|
|
||||||
dnl We will use the build machine information to set some variables.
|
dnl We will use the build machine information to set some variables.
|
||||||
dnl
|
|
||||||
case $build in
|
case $build in
|
||||||
*i*86*) AC_SUBST(OS,[Linux])
|
*-*-linux*)
|
||||||
|
AC_SUBST(OS,[Linux])
|
||||||
if test -d /home/vadve/lattner/local/x86/llvm-gcc
|
if test -d /home/vadve/lattner/local/x86/llvm-gcc
|
||||||
then
|
then
|
||||||
AC_SUBST(LLVMGCCDIR,[/home/vadve/lattner/local/x86/llvm-gcc/])
|
AC_SUBST(LLVMGCCDIR,[/home/vadve/lattner/local/x86/llvm-gcc/])
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*sparc*) AC_SUBST(OS,[SunOS])
|
*-*-solaris*)
|
||||||
|
AC_SUBST(OS,[SunOS])
|
||||||
if test -d /home/vadve/lattner/local/sparc/llvm-gcc
|
if test -d /home/vadve/lattner/local/sparc/llvm-gcc
|
||||||
then
|
then
|
||||||
AC_SUBST(LLVMGCCDIR,[/home/vadve/lattner/local/sparc/llvm-gcc/])
|
AC_SUBST(LLVMGCCDIR,[/home/vadve/lattner/local/sparc/llvm-gcc/])
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
*-*-darwin*)
|
||||||
|
AC_SUBST(OS,[Darwin])
|
||||||
|
;;
|
||||||
|
|
||||||
*) AC_SUBST(OS,[Unknown])
|
*) AC_SUBST(OS,[Unknown])
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl If we are targetting a Sparc machine running Solaris, pretend that it is
|
dnl If we are targetting a Sparc machine running Solaris, pretend that it is
|
||||||
dnl V9, since that is all that we support at the moment, and autoconf will only
|
dnl V9, since that is all that we support at the moment, and autoconf will only
|
||||||
dnl tell us we're a sparc.
|
dnl tell us we're a sparc.
|
||||||
dnl
|
|
||||||
case $target in
|
case $target in
|
||||||
*sparc*solaris*) AC_SUBST(target,[[sparcv9-sun-solaris2.8]])
|
sparc*-*-solaris*) AC_SUBST(target,[[sparcv9-sun-solaris2.8]])
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl Determine what our target architecture is and configure accordingly.
|
dnl Determine what our target architecture is and configure accordingly.
|
||||||
dnl This will allow Makefiles to make a distinction between the hardware and
|
dnl This will allow Makefiles to make a distinction between the hardware and
|
||||||
dnl the OS.
|
dnl the OS.
|
||||||
dnl
|
|
||||||
case $target in
|
case $target in
|
||||||
*i*86*) AC_SUBST(ARCH,[x86])
|
i*86-*) AC_SUBST(ARCH,[x86])
|
||||||
;;
|
;;
|
||||||
*sparc*solaris*) AC_SUBST(ARCH,[Sparc])
|
sparc*-*) AC_SUBST(ARCH,[Sparc])
|
||||||
|
;;
|
||||||
|
powerpc*-*) AC_SUBST(ARCH,[PowerPC])
|
||||||
|
;;
|
||||||
|
*) AC_SUBST(ARCH,[Unknown])
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user