Open Quuxplusone opened 10 years ago
Bugzilla Link | PR18238 |
Status | NEW |
Importance | P normal |
Reported by | David Fang (fang@csl.cornell.edu) |
Reported on | 2013-12-12 19:39:38 -0800 |
Last modified on | 2013-12-15 18:51:20 -0800 |
Version | trunk |
Hardware | Macintosh MacOS X |
CC | geek4civic@gmail.com, iains-llvm@btconnect.com, llvm-bugs@lists.llvm.org |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index 2acde8b..e6a14b8 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -4658,6 +4658,9 @@ void darwin::Assemble::ConstructJob(Compilation &C, const
JobAction &JA,
// Derived from asm spec.
AddDarwinArch(Args, CmdArgs);
+ // We probably want to allow use of newer assemblers.
+ // Args.AddAllArgs(CmdArgs, options::OPT_B);
+
// Use -force_cpusubtype_ALL on x86 by default.
if (getToolChain().getArch() == llvm::Triple::x86 ||
getToolChain().getArch() == llvm::Triple::x86_64 ||
@@ -4971,6 +4974,7 @@ void darwin::Link::ConstructJob(Compilation &C, const JobA
ction &JA,
// we follow suite for ease of comparison.
AddLinkArgs(C, Args, CmdArgs, Inputs);
+ Args.AddAllArgs(CmdArgs, options::OPT_B);
Args.AddAllArgs(CmdArgs, options::OPT_d_Flag);
Args.AddAllArgs(CmdArgs, options::OPT_s);
Args.AddAllArgs(CmdArgs, options::OPT_t);