freebsd-dev/contrib/llvm/patches/patch-r213492-amd64-multi-os-dot.diff
Dimitry Andric a1f8ad145e Add separate patch files for all the customizations we have currently
applied to our copy of llvm/clang.  These can be applied in alphabetical
order to a pristine llvm/clang 3.4 release source tree, to result in the
same version used in FreeBSD.

This is intended to clearly document all the changes until now, which
mostly consist of cherry pickings from the respective upstream trunks,
plus a number of hand-written FreeBSD-specific ones.  Hopefully those
can eventually be cleaned up and sent upstream too.

MFC after:	1 week
X-MFC-With:	r263313
2014-03-18 22:07:45 +00:00

19 lines
599 B
Diff

This patch makes "clang -print-multi-os-directory" print "." on amd64, which is
required by certain ports.
Introduced here: http://svn.freebsd.org/changeset/base/213492
Index: tools/clang/lib/Driver/Driver.cpp
===================================================================
--- tools/clang/lib/Driver/Driver.cpp
+++ tools/clang/lib/Driver/Driver.cpp
@@ -780,7 +780,7 @@ bool Driver::HandleImmediateArgs(const Compilation
break;
case llvm::Triple::x86_64:
- llvm::outs() << "x86_64" << "\n";
+ llvm::outs() << "." << "\n";
break;
case llvm::Triple::ppc64: