It would be great to stay in sync with upstream.

http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?r1=160103&r2=160231

On Sat, Jul 28, 2012 at 12:50:26PM +0000, Dimitry Andric wrote:
> Author: dim
> Date: Sat Jul 28 12:50:25 2012
> New Revision: 238863
> URL: http://svn.freebsd.org/changeset/base/238863
> 
> Log:
>   Similar to r238472, let clang pass --enable-new-dtags to the linker
>   invocation by default.  Also make sure --hash-style=both is passed for
>   the same arches as gcc, e.g. arm, sparc and x86.
>   
>   X-MFC-with: r238472
> 
> Modified:
>   head/contrib/llvm/tools/clang/lib/Driver/Tools.cpp
> 
> Modified: head/contrib/llvm/tools/clang/lib/Driver/Tools.cpp
> ==============================================================================
> --- head/contrib/llvm/tools/clang/lib/Driver/Tools.cpp        Sat Jul 28 
> 11:28:00 2012        (r238862)
> +++ head/contrib/llvm/tools/clang/lib/Driver/Tools.cpp        Sat Jul 28 
> 12:50:25 2012        (r238863)
> @@ -4761,8 +4761,10 @@ void freebsd::Link::ConstructJob(Compila
>        CmdArgs.push_back("/libexec/ld-elf.so.1");
>      }
>      llvm::Triple::ArchType Arch = getToolChain().getArch();
> -    if (Arch == llvm::Triple::x86 || Arch == llvm::Triple::x86_64)
> +    if (Arch == llvm::Triple::arm || Arch == llvm::Triple::sparc ||
> +        Arch == llvm::Triple::x86 || Arch == llvm::Triple::x86_64)
>        CmdArgs.push_back("--hash-style=both");
> +    CmdArgs.push_back("--enable-new-dtags");
>    }
>  
>    // When building 32-bit code on FreeBSD/amd64, we have to explicitly
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to