Author: dim Date: Thu May 5 16:14:13 2011 New Revision: 221503 URL: http://svn.freebsd.org/changeset/base/221503
Log: Make cross-compiling using clang work better, by respecting the LLVM_HOSTTRIPLE that is defined during the cross-tools stage. Using clang, you can now build amd64 world and kernel on i386, and vice versa. Other arches still need work. Modified: head/contrib/llvm/lib/Support/Unix/Host.inc Modified: head/contrib/llvm/lib/Support/Unix/Host.inc ============================================================================== --- head/contrib/llvm/lib/Support/Unix/Host.inc Thu May 5 14:45:24 2011 (r221502) +++ head/contrib/llvm/lib/Support/Unix/Host.inc Thu May 5 16:14:13 2011 (r221503) @@ -35,6 +35,9 @@ static std::string getOSVersion() { } std::string sys::getHostTriple() { +#ifdef __FreeBSD__ + return LLVM_HOSTTRIPLE; +#else // FIXME: Derive directly instead of relying on the autoconf generated // variable. @@ -91,4 +94,5 @@ std::string sys::getHostTriple() { } return Triple; +#endif } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"