mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-27 07:12:06 +00:00
autoconf: Re-introduce LLVM_HOSTTRIPLE since r143500, as rework of PR11060.
cmake: Add LLVM_HOSTTRIPLE. For now, it is same as TARGET_TRIPLE. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160609 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c7088c9a9c
commit
2864de7c2d
@ -1538,6 +1538,8 @@ AC_DEFINE_UNQUOTED(LLVM_MANDIR, "$LLVM_MANDIR",
|
||||
[Installation directory for man pages])
|
||||
AC_DEFINE_UNQUOTED(LLVM_CONFIGTIME, "$LLVM_CONFIGTIME",
|
||||
[Time at which LLVM was configured])
|
||||
AC_DEFINE_UNQUOTED(LLVM_HOSTTRIPLE, "$host",
|
||||
[Host triple LLVM will be executed on])
|
||||
AC_DEFINE_UNQUOTED(LLVM_DEFAULT_TARGET_TRIPLE, "$target",
|
||||
[Target triple LLVM will generate code for by default])
|
||||
|
||||
|
@ -295,6 +295,7 @@ get_host_triple(LLVM_HOST_TRIPLE)
|
||||
# By default, we target the host, but this can be overridden at CMake
|
||||
# invocation time.
|
||||
set(LLVM_DEFAULT_TARGET_TRIPLE "${LLVM_HOST_TRIPLE}")
|
||||
set(LLVM_HOSTTRIPLE "${LLVM_HOST_TRIPLE}")
|
||||
set(TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}")
|
||||
|
||||
# Determine the native architecture.
|
||||
|
5
configure
vendored
5
configure
vendored
@ -20948,6 +20948,11 @@ cat >>confdefs.h <<_ACEOF
|
||||
_ACEOF
|
||||
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define LLVM_HOSTTRIPLE "$host"
|
||||
_ACEOF
|
||||
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
|
||||
_ACEOF
|
||||
|
@ -554,6 +554,9 @@
|
||||
/* Has gcc/MSVC atomic intrinsics */
|
||||
#cmakedefine01 LLVM_HAS_ATOMICS
|
||||
|
||||
/* Host triple LLVM will be executed on */
|
||||
#cmakedefine LLVM_HOSTTRIPLE "${LLVM_HOSTTRIPLE}"
|
||||
|
||||
/* Installation directory for include files */
|
||||
#cmakedefine LLVM_INCLUDEDIR "${LLVM_INCLUDEDIR}"
|
||||
|
||||
|
@ -552,6 +552,9 @@
|
||||
/* Has gcc/MSVC atomic intrinsics */
|
||||
#undef LLVM_HAS_ATOMICS
|
||||
|
||||
/* Host triple LLVM will be executed on */
|
||||
#undef LLVM_HOSTTRIPLE
|
||||
|
||||
/* Installation directory for include files */
|
||||
#undef LLVM_INCLUDEDIR
|
||||
|
||||
|
@ -40,6 +40,9 @@
|
||||
/* Has gcc/MSVC atomic intrinsics */
|
||||
#cmakedefine01 LLVM_HAS_ATOMICS
|
||||
|
||||
/* Host triple LLVM will be executed on */
|
||||
#cmakedefine LLVM_HOSTTRIPLE "${LLVM_HOSTTRIPLE}"
|
||||
|
||||
/* Installation directory for include files */
|
||||
#cmakedefine LLVM_INCLUDEDIR "${LLVM_INCLUDEDIR}"
|
||||
|
||||
|
@ -40,6 +40,9 @@
|
||||
/* Has gcc/MSVC atomic intrinsics */
|
||||
#undef LLVM_HAS_ATOMICS
|
||||
|
||||
/* Host triple LLVM will be executed on */
|
||||
#undef LLVM_HOSTTRIPLE
|
||||
|
||||
/* Installation directory for include files */
|
||||
#undef LLVM_INCLUDEDIR
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user