From cd18b7fde7035905cce167fb6e3a5962f4f25963 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Sequoia Date: Sat, 17 Jan 2015 16:41:30 -0800 Subject: [PATCH 3/4] MacPorts Only: Don't embed the deployment target in the asm when using -fno-integrated-as http://llvm.org/bugs/show_bug.cgi?id=21636 Signed-off-by: Jeremy Huddleston Sequoia --- lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git llvm_release_50/lib/CodeGen/AsmPrinter/AsmPrinter.cpp macports_release_50/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index ff427c9a0d7..aedbd0d0f5e 100644 --- llvm_release_50/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ macports_release_50/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -244,7 +244,7 @@ bool AsmPrinter::doInitialization(Module &M) { // anyway. const Triple &TT = TM.getTargetTriple(); // If there is a version specified, Major will be non-zero. - if (TT.isOSDarwin() && TT.getOSMajorVersion() != 0) { + if (TT.isOSDarwin() && TT.getOSMajorVersion() != 0 && MAI->useIntegratedAssembler()) { unsigned Major, Minor, Update; MCVersionMinType VersionType; if (TT.isWatchOS()) { -- 2.13.3