]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/llvm/patches/patch-r221503-default-target-triple.diff
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / llvm / patches / patch-r221503-default-target-triple.diff
1 This patch ensures the target triple that is passed during the compiler build is
2 respected, instead of mangling it.
3
4 Introduced here: http://svnweb.freebsd.org/changeset/base/221503
5
6 Index: lib/Support/Unix/Host.inc
7 ===================================================================
8 --- lib/Support/Unix/Host.inc
9 +++ lib/Support/Unix/Host.inc
10 @@ -26,6 +26,11 @@
11  
12  using namespace llvm;
13  
14 +#ifdef __FreeBSD__
15 +std::string sys::getDefaultTargetTriple() {
16 +  return LLVM_DEFAULT_TARGET_TRIPLE;
17 +}
18 +#else // __FreeBSD__
19  static std::string getOSVersion() {
20    struct utsname info;
21  
22 @@ -61,3 +66,4 @@ std::string sys::getDefaultTargetTriple() {
23  
24    return Triple;
25  }
26 +#endif // __FreeBSD__