libclang.so is used by other ports and the update to llvm 10 warranted
a minor bump. I haven't checked liblldb.so and libLTO.so, I bumped
their major version just in case but they aren't used in the ports tree.
Thanks to kn@ who provided an old libclang.so for comparison.
- like base-clang, change the default i386 target cpu to i586.
Same diff from Brad
- fix a crash exposed by net/libtorrent-rasterbar. Fix already present
in 10.0.1, analyze and diff from Nam Nguyen
- some lldb-related files snuck in the 10.0.0 PLIST-main changes, move
them to PLIST-lldb as appropriate. Reported by daniel@
libpython2.7 could be picked up even though the python3 interpreter was
detected and used. This lead to a funny line in configure output:
-- Found PythonLibs: /usr/local/lib/libpython2.7.so.0.0 (found version "3.7.7")
Let cmake pick a library version that matches the python interpreter
instead of declaring a preference for 2.7.
Build failure reported by naddy@
Mips: Use a distinct trapcode with retguard on mips64.
PowerPC:
- Set max atomic size for AtomicExpandPass.
- For OpenBSD/powerpc64: switch to ELFv2, use _mcount profiling, and
add our OpenBSD specific defines.
- Optimize away the frame pointer.
ok jca@ (maintainer), cwen@
- fix small pic for secure-plt mode (from kettenis@)
- modify LLVM's DAGCombiner to skip an optimization if it
would make an illegal ISD::ADDE node, fixing a fatal backend error
(from gkoehler@ with help from mortimer@)
OK jca@ (maintainer)
While here:
- adjust python scripts shebang lines
- also byte-compile the .py files in the lldb subpackage. One file
needs a brute-force conversion using 2to3
Tested in a bulk by ajacoutot@, prompted by and ok kn@
The installed headers don't need it, except for a testsuite header not
used by the ecosystem.
Also drop two outdated PLIST lines from back when llvm tried to install
libgtest.a
Spotted while discussing the deps of the various subpackages with kn@
Tested in a bulk by ajacoutot@, ok kn@
- don't install six.py, turns out there's a cmake config knob for that
- drop misplaced, @commented out header
- add @so and @static-lib markers
Don't use DEBUG_PACKAGES for now, as the size increase of ${WRKBUILD} is
huge. I tried to use -gline-tables-only (I think?) as advised by kmos@
but the size of the resulting non-debug packages increased. To be
revisited...
- Add retguard for octeon/mips64.
- Move the hashed __retguard_* symbols into individual sections and mark
them as COMDATs so that the linker can individually discard them, instead
of just ignoring duplicate symbols but keep the (duplicate) space.
from Brad
- Make clang emit the proper path to our libcompiler_rt.a when asked to.
- Sort relative relocations (and relocations against the same symbol) by offset
to optimize the cache and UVM faulting behavior
from Brad
Passing -DBacktrace_LIBRARY='' doesn't work since the flag has been
renamed to Backtrace_LIBRARIES and isn't enough anyway to prevent the
llvm cmake files to *add a dep on all headers* in
${Backtrace_INCLUDE_DIRS}, ie /usr/local/include.
... which of course leads to builds blowing up whenever dpb(1) junking
kicks in.
Bulk builders: sorry it took me so long to get my head out of the sand.
Last report by naddy@
o clang:
- add back kernel printf %b length specifier support (%llb, etc, lost in
the update to 8.0.0)
o lld:
- Restore previous section after setting the MIPS ABI marker
- Fix output section alignement when entry size isn't a power of two
o arm64, amd64:
- Do not store the retguard cookie in frame in leaf functions if possible
- Emit variable length trap padding in retguard epilogue
o amd64:
- move code that selects retpoline by default to a different source file
o mips64:
- Fix a bug in memory operand handling
- Implement SGE pseudo-instructions
- Implement .cplocal directive
- Fix instruction guard
- Implement the 'h' register constraint on mips64
o sparc64:
- Remove cast that truncates immediate operands to 32 bits
I botched the library search paths when merging OpenBSD.cpp, repair
that. Also always add -L${LOCALBASE}/lib like was done before.
Looks like I committed an old diff which lacked SHARED_LIBS+=OptRemarks.
While here, force-disable Z3 support from math/z3.
Most patch merges inspired from patrick's work on base-clang. Consumer
ports fixed/marked BROKEN as discussed with bcallah@ and rsadowski@.
powerpc tests and PLIST fixes from cwen@, thanks! rust-1.36 tests by
semarie@
where we need a way to get to gcc-libs/libestdc++. This happened to
work so far except when it didn't (slight differences between built
and already installed llvm packages, maybe?), as found the hard way by
cwen@.
Our COMPILER support automatically amends WANTLIB and LIB_DEPENDS, so
use those to explicitely set:
- WANTLIB-main and WANTLIB-lldb
- LIB_DEPENDS-main and LIB_DEPENDS-lldb
The clang-tools-extra package contains helpful developer tools using
Clang's APIs.
Initial diff from me, further work by jca@ with feedback from sthen@.
OK jca@ and @sthen
* switch gcc4 module to gcc/8
* register the gcc/8 subpackages as updates for their gcc/4.9 counterparts
* sync the gcc version in devel/llvm
* add a quirk entry that gcj is obsolete
* unhook 4.9 from the build
Preparatory work by many.
ok sthen@