[cfe-commits] r127879 - /cfe/trunk/lib/Driver/Driver.cpp
Rafael Espindola
rafael.espindola at gmail.com
Fri Mar 18 08:50:12 PDT 2011
Author: rafael
Date: Fri Mar 18 10:50:12 2011
New Revision: 127879
URL: http://llvm.org/viewvc/llvm-project?rev=127879&view=rev
Log:
On !Darwin, do use the integrated as with -static.
Modified:
cfe/trunk/lib/Driver/Driver.cpp
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=127879&r1=127878&r2=127879&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Fri Mar 18 10:50:12 2011
@@ -1079,7 +1079,9 @@
bool HasStatic = (C.getArgs().hasArg(options::OPT_mkernel) ||
C.getArgs().hasArg(options::OPT_static) ||
C.getArgs().hasArg(options::OPT_fapple_kext));
- bool IsIADefault = (TC->IsIntegratedAssemblerDefault() && !HasStatic);
+ bool IsDarwin = TC->getTriple().getOS() == llvm::Triple::Darwin;
+ bool IsIADefault = TC->IsIntegratedAssemblerDefault() &&
+ !(HasStatic && IsDarwin);
if (C.getArgs().hasFlag(options::OPT_integrated_as,
options::OPT_no_integrated_as,
IsIADefault) &&
More information about the cfe-commits
mailing list