--- a/clang/lib/Driver/ToolChains/Gnu.cpp +++ b/clang/lib/Driver/ToolChains/Gnu.cpp @@ -693,7 +693,7 @@ void tools::gnutools::Assembler::ConstructJob(Compilation &C, llvm::Reloc::Model RelocationModel; unsigned PICLevel; bool IsPIE; - const char *DefaultAssembler = "as"; + const char *DefaultAssembler = "gas"; // Enforce GNU as on Solaris; the native assembler's input syntax isn't fully // compatible. if (getToolChain().getTriple().isOSSolaris())