r239047 - [SPARC] Fix multiarch path detection for sparc and sparcv9.
Rafael EspĂndola
rafael.espindola at gmail.com
Thu Jun 4 09:45:25 PDT 2015
Testcase?
On Jun 4, 2015 11:45 AM, "James Y Knight" <jyknight at google.com> wrote:
> Author: jyknight
> Date: Thu Jun 4 10:36:30 2015
> New Revision: 239047
>
> URL: http://llvm.org/viewvc/llvm-project?rev=239047&view=rev
> Log:
> [SPARC] Fix multiarch path detection for sparc and sparcv9.
>
> Modified:
> cfe/trunk/lib/Driver/ToolChains.cpp
>
> Modified: cfe/trunk/lib/Driver/ToolChains.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=239047&r1=239046&r2=239047&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/Driver/ToolChains.cpp (original)
> +++ cfe/trunk/lib/Driver/ToolChains.cpp Thu Jun 4 10:36:30 2015
> @@ -3115,6 +3115,14 @@ static std::string getMultiarchTriple(co
> if (llvm::sys::fs::exists(SysRoot + "/lib/powerpc64le-linux-gnu"))
> return "powerpc64le-linux-gnu";
> return TargetTriple.str();
> + case llvm::Triple::sparc:
> + if (llvm::sys::fs::exists(SysRoot + "/lib/sparc-linux-gnu"))
> + return "sparc-linux-gnu";
> + return TargetTriple.str();
> + case llvm::Triple::sparcv9:
> + if (llvm::sys::fs::exists(SysRoot + "/lib/sparc64-linux-gnu"))
> + return "sparc64-linux-gnu";
> + return TargetTriple.str();
> }
> }
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150604/e2240ad3/attachment.html>
More information about the cfe-commits
mailing list