derive LLVM_HOSTTRIPLE from target
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143500 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/projects/sample/autoconf/configure.ac b/projects/sample/autoconf/configure.ac
index fae0060..a5d786d 100644
--- a/projects/sample/autoconf/configure.ac
+++ b/projects/sample/autoconf/configure.ac
@@ -1386,7 +1386,7 @@
[Installation directory for man pages])
AC_DEFINE_UNQUOTED(LLVM_CONFIGTIME, "$LLVM_CONFIGTIME",
[Time at which LLVM was configured])
-AC_DEFINE_UNQUOTED(LLVM_HOSTTRIPLE, "$host",
+AC_DEFINE_UNQUOTED(LLVM_HOSTTRIPLE, "$target",
[Host triple we were built on])
# Determine which bindings to build.
diff --git a/projects/sample/configure b/projects/sample/configure
index 921afb5..1045b5d 100755
--- a/projects/sample/configure
+++ b/projects/sample/configure
@@ -20815,7 +20815,7 @@
cat >>confdefs.h <<_ACEOF
-#define LLVM_HOSTTRIPLE "$host"
+#define LLVM_HOSTTRIPLE "$target"
_ACEOF