Page MenuHomeFreeBSD

Build and enable LLVM's gold plugin.
ClosedPublic

Authored by rpaulo on Aug 7 2015, 6:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 7, 6:30 PM
Unknown Object (File)
Thu, Apr 4, 6:18 PM
Unknown Object (File)
Tue, Apr 2, 6:46 PM
Unknown Object (File)
Sun, Mar 31, 7:01 PM
Unknown Object (File)
Fri, Mar 29, 7:35 PM
Unknown Object (File)
Wed, Mar 27, 5:13 PM
Unknown Object (File)
Mon, Mar 25, 10:44 AM
Unknown Object (File)
Sun, Mar 24, 1:27 AM
Subscribers
None

Details

Summary

Build and enable LLVM's gold plugin.

Test Plan

Passed poudriere bulk build with -t.

% cat t.c
int
main() {}
% clang37 -fuse-ld=gold -flto -v t.c
clang version 3.7.0 (tags/RELEASE_370/rc1)
Target: x86_64-unknown-freebsd11.0
Thread model: posix
 "/usr/local/llvm37/bin/clang-3.7" -cc1 -triple x86_64-unknown-freebsd11.0 -flto -emit-llvm-bc -disable-free -main-file-name t.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -v -dwarf-column-info -resource-dir /usr/local/llvm37/bin/../lib/clang/3.7.0 -fdebug-compilation-dir /home/rpaulo -ferror-limit 19 -fmessage-length 80 -mstackrealign -fobjc-runtime=gnustep -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/t-7c564e.o -x c t.c
clang -cc1 version 3.7.0 based upon LLVM 3.7.0 default target x86_64-unknown-freebsd11.0
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/llvm37/bin/../lib/clang/3.7.0/include
 /usr/include
End of search list.
 "/usr/local/bin/ld.gold" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --hash-style=both --enable-new-dtags -o a.out /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib -plugin /usr/local/llvm37/bin/../lib/LLVMgold.so -plugin-opt=mcpu=x86-64 /tmp/t-7c564e.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 17
Build 17: arc lint + arc unit

Event Timeline

rpaulo retitled this revision from to Build and enable LLVM's gold plugin..
rpaulo updated this object.
rpaulo edited the test plan for this revision. (Show Details)
rpaulo added reviewers: bapt, brooks.

Please add the required bits to the awk in the build-plist target at the end of the Makefile to generate pkg-plist. Otherwise this looks fine.

This revision was automatically updated to reflect the committed changes.