mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
autoconf: Re-introduce LLVM_HOSTTRIPLE since r143500, as rework of PR11060.
cmake: Add LLVM_HOSTTRIPLE. For now, it is same as TARGET_TRIPLE. llvm-svn: 160609
This commit is contained in:
parent
f1a5d95995
commit
d79a015152
@ -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