55 Commits

Author SHA1 Message Date
jca
91a67452c3 Follow base and update to llvm-10.0.1 2020-08-10 11:38:43 +00:00
jca
50a2a85b0a Misc changes: x86 defaults to i586, backport a fix and tweak the PLISTs
- 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@
2020-08-07 11:42:02 +00:00
jca
2794487c37 Update to llvm-10.0.0
Positive feedback from landry@
2020-08-05 06:49:48 +00:00
jca
6db569706c Switch llvm to python3
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@
2020-03-22 00:58:36 +00:00
jca
5342f82d30 Drop gtest from RUN_DEPENDS
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@
2020-03-22 00:57:51 +00:00
jca
373996e012 Some PLIST tweaks
- 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...
2020-03-06 14:39:57 +00:00
jca
3eaafeecdd Build all targets on powerpc
Supposedly ld -relax fixes the relocation overflow problems.
Diff from Brad tested by cwen@
2019-12-05 15:24:58 +00:00
jca
c64dc40473 Sort PLIST
from Brad
2019-09-09 21:15:16 +00:00
jca
f14c55be2c Major fix for -stdlib=libstdc++, properly register libOptRemarks.so
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.
2019-07-08 07:56:52 +00:00
jca
75c7843086 Update to llvm-8.0.0
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@
2019-07-06 15:06:36 +00:00
jca
4663337cd2 Remove -extras subpackage (already disabled)
Discussed with rsadowski@
2019-05-08 21:53:20 +00:00
rsadowski
5e00888b26 Add Clang extra tools
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
2019-04-28 11:00:08 +00:00
ajacoutot
624a6e6410 MESSAGE -> README
ok jca@ (maintainer)
2019-03-09 06:18:11 +00:00
jca
21b863839c Update to llvm-7.0.1 (and include-what-you-use-0.11)
All the work done by Brad except for some fixes from base by mortimer@
and patrick@

Tests: amd64 Brad, jsg@ and me, i386: Brad, mips64: visa@, sparc64 me.
No tests on powerpc but a test build with only the PowerPC backend
packages on amd64.
2019-01-28 06:27:28 +00:00
sthen
c380b5a309 subpackage LLDB, and knock out that subpackage on arches where we
build with ports-gcc which isn't yet in shape to build LLDB.

tests and tweaks from various people including jca@, landry@,
Charlene Wendling, and probably others -- ok jca@
2018-12-06 21:51:01 +00:00
ajacoutot
8730604019 Remove duplicates. 2018-11-21 12:46:00 +00:00
ajacoutot
9c67f8ed48 Adjust PLIST with PFRAG to deal with PowerPC specific build behavior.
from Brad (maintainer)
2018-11-21 08:03:05 +00:00
ajacoutot
85514ee306 Resolve file collision with py-six by removing the copy of Six shipped
with LLVM and add a build depends on py-six.

From Brad (maintainer)
2018-10-17 08:35:55 +00:00
ajacoutot
e8b39de277 Add LLDB.
from Brad (maintainer)
input and ok sthen@
2018-10-06 15:27:10 +00:00
ajacoutot
ab90bf3743 Update to llvm-6.0.0.
tested in a bulk
from Brad (maintainer)
2018-04-07 14:55:42 +00:00
jsg
4ba39943a1 Build libLLVM.so and link tools with it.
This seems to be the way almost all Linux distributions and BSDs ship
LLVM and is what Mesa expects.  There are concerns this may cause issues
if ports start linking it, hopefully this won't happen as everything
links libLLVM-X.Y.so where X.Y is the branch version which will have the
same ABI throughout X.Y.Z releases.  The rust port explicitly links
statically even if shared libLLVM is available.

Patch cmake files in a similiar way to a patch in NetBSD pkgsrc to
correct symbols not getting added to the shared library on OpenBSD.

Use the documented cmake var for RTTI while here.

ok brad (MAINTAINER) sthen@ bcallah@
2018-03-09 03:01:22 +00:00
ajacoutot
1c2ac0d175 Update to llvm-5.0.0.
from Brad (maintainer)
2017-09-08 05:58:19 +00:00
ajacoutot
e563677b2c Update to llvm-5.0.0rc4.
Tested on amd64, i386, sparc64
from Brad (maintainer)
2017-09-01 06:40:28 +00:00
ajacoutot
34055b270c Update to llvm-4.0.0.
from Brad (maintainer)
2017-03-14 17:29:45 +00:00
ajacoutot
d117846858 Update to llvm-4.0.0rc2.
- survived a bulk on i386 and amd64

from Brad (maintainer)
2017-02-10 09:37:43 +00:00
bluhm
413a6b64d5 Create subpackage py-llvm that contains the Python bindings for Clang.
Bump revision of llvm main package and x11/gnome/builder.
OK Brad Smith (maintainer) ajacoutot@ sthen@
2017-01-08 01:59:49 +00:00
ajacoutot
75d8613809 Update to llvm-3.9.1.
from Brad (maintainer)
2016-12-22 11:07:13 +00:00
sthen
eb38ea3807 don't build lld on i386, it needs __atomic_load_8. ok aja@ 2016-10-12 11:04:38 +00:00
ajacoutot
6e0f1195c3 Enable building lld.
from Brad (maintainer)
2016-10-09 06:47:10 +00:00
ajacoutot
4c4e51995d Update to LLVM 3.9.0.
Been through bulks on amd64 / i386 by sthen@ and naddy@ respectively.

from Brad (maintainer)
2016-10-07 08:55:30 +00:00
ajacoutot
99e4144510 Update to llvm-3.8.0.
from Brad (maintainer)
2016-05-14 20:36:36 +00:00
pascal
ba0dd5ada1 Update to LLVM 3.7.1. This version is modified to use C++ includes from
ports GCC and link to libestdc++.

Currently, this still breaks mail/mozilla-thunderbird, which will be taken care
of shortly.

feedback/testing from jsg landry mmcc semarie aja naddy (hope I didn't forget
anyone)

ok landry robert
2016-03-05 15:31:40 +00:00
brad
207a2888cc Update to LLVM 3.5 (trunk) snapshot just before switching to an unconditional
C++11 codebase.

This brings in a number of improvements over 3.4 including..
X86 assembler with 16-bit support
Much improved SPARC backend
stack protector strong support

ok sthen@
2014-04-18 09:30:48 +00:00
brad
dc5f6f6c36 - Fix the test target since the switch from GNU autoconf/make to CMake
- Add the scan-build man page
- Correct the capitalization of Clang in DESCR

ok sthen@
2013-12-07 10:30:39 +00:00
jsg
b1ef8a8075 enable the R600 target
ok sthen@ brad@
2013-08-06 23:33:44 +00:00
brad
ffaa1a2b14 Update to LLVM 3.3.
ok sthen@
2013-06-21 22:09:12 +00:00
brad
cc75b05c01 Update to LLVM 3.2 and switces to __guard_local for stack protector support.
Initial work from landry@ with some fixes and further tweaking from pascal@ and brad@

ok sthen@ landry@
2012-12-23 20:49:29 +00:00
sthen
68d394c41c Update to LLVM 3.1.
Thanks Brad for pointing out a few problems with my original diff.
2012-05-25 09:05:49 +00:00
sthen
7ff2ae5f79 update to LLVM/CLang 3.0, thanks sebastia@ for testing.
- switch to cmake build
- add profiling support from jsg@
2011-12-14 22:58:23 +00:00
jasper
b9751fcca8 - update scan-build link in MESSAGE
from tim van der molen
2011-06-30 19:57:14 +00:00
chl
c69a51fdef No need to "make depend" anymore to build kernel.
ok sthen@
2011-05-03 15:03:03 +00:00
jsg
e9fbea9c63 update to 2.9
ok sthen@ tested by matthew@ jeremy@
2011-04-09 21:43:39 +00:00
jeremy
f02872702e Bump llvm version to 2.8.
OK @sthen
2011-01-13 00:15:50 +00:00
sthen
9dce0552ee - enable RTTI, requested by jeremy@ and suggested in LLVM packager notes
- add a comment referring to packager notes

- garbage-collect symlink which is no longer necessary and inclusion
of bsd.own.mk that was previously used to check the version of
the system compiler

tested by jeremy@ and myself
2010-09-28 07:38:24 +00:00
jsg
84c63f751b Update to LLVM/Clang 2.7
ok sthen@
2010-04-29 16:37:09 +00:00
jsg
d264b944d0 update to 2.6
ok sthen@
2009-11-02 22:53:27 +00:00
jsg
e13506b12d Enable release/optimised build and fix PLIST.
ok sthen@
2009-08-09 20:16:41 +00:00
sthen
d16432b095 Update to a newer snapshot, requested by jsg@. Fixes building autoconf
projects, upstream rolled in the OpenBSD backend with proper target-specific
definitions etc.
2009-08-09 11:26:03 +00:00
sthen
e6fe633831 - add OpenBSD config; from jsg@.
- install a symlink as a workaround to a bug identifying the path to clang-cc.

commit approved by naddy.
2009-06-25 15:25:13 +00:00
sthen
b63c0d29a3 fix manual page installation path. fixed in another tree but missed it
when I was updating; also pointed out with a diff by Moritz Grimm, thanks!
2009-06-22 00:19:01 +00:00