ok On 12/10/23 18:04 +0000, Klemens Nanni wrote: > Robert Nagy wrote: > > Then you can put these in /etc/mk.conf: > > > > AR=/usr/local/llvm16/bin/llvm-ar > > AS=/usr/local/llvm16/bin/llvm-as > > CC=/usr/local/llvm16/bin/clang > > CXX=/usr/local/llvm16/bin/clang++ > > CPP=/usr/local/llvm16/bin/clang-cpp > > LD=/usr/local/llvm16/bin/ld.lld > > This is useful to know when wanting to use ports clang for, e.g. base builds. > > Can we provide something like this in the port for testers to refer to? > > > Index: 13/Makefile > =================================================================== > RCS file: /cvs/ports/devel/llvm/13/Makefile,v > retrieving revision 1.11 > diff -u -p -r1.11 Makefile > --- 13/Makefile 23 Sep 2023 12:31:55 -0000 1.11 > +++ 13/Makefile 6 Oct 2023 10:28:27 -0000 > @@ -2,7 +2,7 @@ LLVM_MAJOR = 13 > LLVM_VERSION = ${LLVM_MAJOR}.0.0 > LLVM_PKGSPEC = >=13,<14 > > -REVISION-main = 16 > +REVISION-main = 17 > REVISION-lldb = 5 > REVISION-python = 4 > > Index: 16/Makefile > =================================================================== > RCS file: /cvs/ports/devel/llvm/16/Makefile,v > retrieving revision 1.10 > diff -u -p -r1.10 Makefile > --- 16/Makefile 23 Sep 2023 12:31:55 -0000 1.10 > +++ 16/Makefile 6 Oct 2023 10:28:34 -0000 > @@ -2,7 +2,7 @@ LLVM_MAJOR = 16 > LLVM_VERSION = ${LLVM_MAJOR}.0.6 > LLVM_PKGSPEC = >=16,<17 > > -REVISION-main = 8 > +REVISION-main = 9 > REVISION-lldb = 2 > REVISION-python = 1 > > Index: files/README-main > =================================================================== > RCS file: /cvs/ports/devel/llvm/files/README-main,v > retrieving revision 1.1 > diff -u -p -r1.1 README-main > --- files/README-main 3 Sep 2023 16:04:02 -0000 1.1 > +++ files/README-main 6 Oct 2023 10:40:42 -0000 > @@ -2,6 +2,17 @@ > | Running ${PKGSTEM} on OpenBSD > +----------------------------------------------------------------------- > > +To use different compiler versions for, e.g. release(8), point mk.conf(5) > +at this port: > + > + AR=${PREFIX}/${LLVM_BASE}/bin/llvm-ar > + AS=${PREFIX}/${LLVM_BASE}/bin/llvm-as > + CC=${PREFIX}/${LLVM_BASE}/bin/clang > + CXX=${PREFIX}/${LLVM_BASE}/bin/clang++ > + CPP=${PREFIX}/${LLVM_BASE}/bin/clang-cpp > + LD=${PREFIX}/${LLVM_BASE}/bin/ld.lld > + > + > For more information about using scan-build for the static analyser, > look at: > http://clang-analyzer.llvm.org/scan-build.html
-- Regards, Robert Nagy