Hi all,
this is the minimally intrusive fix for the target-prefixed toolchain
support. This is a partial revert of r148839, fixed in r149083, reverted
and re-broken in r149337. Given that's been 3 weeks now with a proper
solution, I think it is time to restore the status quo. See also PR
12026.

Joerg
Index: Driver.cpp
===================================================================
--- Driver.cpp	(revision 150937)
+++ Driver.cpp	(working copy)
@@ -304,6 +304,10 @@
       Cur = Split.second;
     }
   }
+  // FIXME: DefaultTargetTriple is used by the target-prefixed calls to as/ld
+  // and getToolChain is const.
+  if (const Arg *A = Args->getLastArg(options::OPT_target))
+    DefaultTargetTriple = A->getValue(*Args);
   if (const Arg *A = Args->getLastArg(options::OPT_ccc_install_dir))
     Dir = InstalledDir = A->getValue(*Args);
   for (arg_iterator it = Args->filtered_begin(options::OPT_B),
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to