<p dir="ltr">Testcase? </p>
<div class="gmail_quote">On Jun 4, 2015 11:45 AM, "James Y Knight" <<a href="mailto:jyknight@google.com">jyknight@google.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: jyknight<br>
Date: Thu Jun  4 10:36:30 2015<br>
New Revision: 239047<br>
<br>
URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject-3Frev-3D239047-26view-3Drev&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=BSqEv9KvKMW_Ob8SyngJ70KdZISM_ASROnREeq0cCxk&m=Ver2ZLmSxA-Ti-Va4pgHj3w2jBIiMsJyomK369F6uok&s=ALeV5QMcn3G5z877azUocolAXHWeycJxEVp0w2q0F1c&e=" target="_blank">http://llvm.org/viewvc/llvm-project?rev=239047&view=rev</a><br>
Log:<br>
[SPARC] Fix multiarch path detection for sparc and sparcv9.<br>
<br>
Modified:<br>
    cfe/trunk/lib/Driver/ToolChains.cpp<br>
<br>
Modified: cfe/trunk/lib/Driver/ToolChains.cpp<br>
URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject_cfe_trunk_lib_Driver_ToolChains.cpp-3Frev-3D239047-26r1-3D239046-26r2-3D239047-26view-3Ddiff&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=BSqEv9KvKMW_Ob8SyngJ70KdZISM_ASROnREeq0cCxk&m=Ver2ZLmSxA-Ti-Va4pgHj3w2jBIiMsJyomK369F6uok&s=sDOnlsnYGLGjCw9Q8JFAX7Jw4CMOZX-gYLddrp9Hj7Y&e=" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=239047&r1=239046&r2=239047&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)<br>
+++ cfe/trunk/lib/Driver/ToolChains.cpp Thu Jun  4 10:36:30 2015<br>
@@ -3115,6 +3115,14 @@ static std::string getMultiarchTriple(co<br>
     if (llvm::sys::fs::exists(SysRoot + "/lib/powerpc64le-linux-gnu"))<br>
       return "powerpc64le-linux-gnu";<br>
     return TargetTriple.str();<br>
+  case llvm::Triple::sparc:<br>
+    if (llvm::sys::fs::exists(SysRoot + "/lib/sparc-linux-gnu"))<br>
+      return "sparc-linux-gnu";<br>
+    return TargetTriple.str();<br>
+  case llvm::Triple::sparcv9:<br>
+    if (llvm::sys::fs::exists(SysRoot + "/lib/sparc64-linux-gnu"))<br>
+      return "sparc64-linux-gnu";<br>
+    return TargetTriple.str();<br>
   }<br>
 }<br>
<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div>