summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/clang
AgeCommit message (Collapse)Author
2024-02-08Feed more generated files to the clean target; joint work with naddy@Miod Vallat
2023-11-17Use -mxgot to avoid GOT overflow during build on mips64.Visa Hankala
Tested by deraadt@
2023-11-16set .NOTPARALLEL for AMDGPU tblgen files to tame memory usage on i386Robert Nagy
ok deraadt@
2023-11-14Add missing .PATHJeremie Courreges-Anglas
Reported and suggested by jsing@
2023-11-12append ExtensionDependencies.inc to CLEANFILES only if .OBJDIR != .CURDIRRobert Nagy
2023-11-12TargetMCAs.def is required to be installed in the llvm include dirRobert Nagy
so instead of shipping the file internally, let's generate it and install it with the rest of the headers; unbreaks xenocara build
2023-11-11update build infrastructure for llvm-16.0.6Robert Nagy
2023-11-10remove unused liblldbPluginOperatingSystemRobert Nagy
2023-01-27Recommit the switch to use llvm-strip on architectures that use ld.lld.Mark Kettenis
ok naddy@, sthen@
2023-01-19Revert previous commit (but leave the man page around); llvm-strip behavesMark Kettenis
differently on files that are hardlinked and this is tripping up ports. requested by naddy@
2023-01-19The binutils strip damages GNU_RELRO on binaries linked by ld.lld on atMark Kettenis
least amd64. Fix this by switching to the llvm strip on architectures that use ld.lld. ok deraadt@
2023-01-05do not blow up if NOMAN is setTheo de Raadt
2022-09-13support more than one input file in llvm-ranlib by backportingRobert Nagy
commit aa173573198e024b065c5f6523ce26bb865781b7 from upstream ok kettenis@
2022-08-08Build llvm-cov in base.Frederic Cambus
Since llvm-profdata is in base as well, we can now produce reports from coverage data without having to install the devel/llvm port. OK gnezdo@
2022-07-26For make obj, always the lldb* and llvm-ar directoriesJeremie Courreges-Anglas
Apparently favored by deraadt@, pointed out by patrick@, ok patrick@
2022-07-26Only build lldb support libraries on archs where lldb is installedJeremie Courreges-Anglas
Shaves off a significant amount of time (eg on riscv64) in base builds. If you want to build gnu/usr.bin/clang from source you'll need bsd.own.mk rev 1.213 installed. ok miod@ patrick@
2022-07-13Revert BUILD_LLDB use, don't push manual repair on all people building from ↵Jeremie Courreges-Anglas
source Pointed out by sthen@ While make build indeed takes care of running make install in share/mk, running make obj first would error out when encountering the unknown BUILD_LLDB variable. I can wait a few days before committing this again.
2022-07-12Enter the lldb and lldb-server directories for make obj, even if not builtJeremie Courreges-Anglas
Apparently favored by deraadt@, pointed out by patrick@, ok patrick@
2022-07-12Only build lldb support libraries on archs where lldb is installedJeremie Courreges-Anglas
Shaves off a significant amount of time (eg on riscv64) in base builds. Note that you'll need bsd.own.mk rev 1.213 (which make build should take care of). ok miod@ patrick@
2022-07-11add llvm-profdata(1) to base so that ports can benefit from profiled buildsRobert Nagy
ok fcambus@, sthen@
2022-07-09Build and install llvm-readobj, also install it as llvm-readelfJeremie Courreges-Anglas
Useful on architectures not actually supported by our ancient binutils (arm64, powerpc64, riscv64), or on architectures incompletely supported (eg recent features on amd64). ok kettenis@ sthen@
2022-05-12Drop old powerpc flags from the build of clangGeorge Koehler
Drop NOPIE_FLAGS = -fPIE and change CFLAGS on powerpc to be the same as on other arches. ok deraadt@ kettenis@
2022-03-23Do not forget to install ar.1; ok robertTheo de Raadt
2022-03-23use llvm-ranlib where llvm-ar is used so that they are in line with eachRobert Nagy
other
2022-02-27Enable libedit line editingJeremie Courreges-Anglas
Sync our hardcoded config with what cmake detects in ports/devel/llvm. Brought up privately by cheloha@, then by Andrei on tech@, input and ok gnezdo@
2021-12-17Update build infrastructure for LLVM 13.0.0.Patrick Wildt
2021-11-24install /usr/bin/llvm-ar as /usr/bin/ar directly without adding anotherRobert Nagy
binary to /usr/bin and do the same with the manpage as well and make sure that we only build llvm-ar on architectures where it is actually enabled discussed with deraadt@
2021-11-23add llvm-ar(1) to the build with its two dependencies libLLVMDlltoolDriverRobert Nagy
and libLLVMLibDriver; switch LLD_ARCHs to llvm-ar(1) by skipping the installation of binutils' ar(1) and linking llvm-ar(1) to ar(1) tested on amd64, i386, arm64 and mips64 ok patrick@, kettenis@
2021-08-21Switch macppc to ld.lldgkoehler
Add powerpc to LLD_ARCH. Remove -Wl,-relax flag; ld.bfd needed it, but ld.lld can't take this flag. To avoid linker errors on macppc, you need a snapshot where /usr/bin/ld is LLD. ok kettenis@ deraadt@
2021-08-05Remove the TableGen library from libLLVM. It's only needed for the tblgenPatrick Wildt
tools, and it also provides command line options and thus pollutes the name space. This fixes duplicate command line options in llvm-objdump. Discussed with jsg@
2021-08-02Add infrastructure to build llvm-objcopy and llvm-objdump.Patrick Wildt
ok kettenis@ sthen@
2021-05-19Revert hack to build clang with -static on riscv64.Dale Rahn
This 'requirement' was due to a bug in dtors which has been corrected. reminded by jsg@
2021-05-14On riscv64, dynamically linked clang binary fails with:Dale Rahn
libc++abi: Pure virtual function called! By statically linking clang (and *-tblgen) this problem is worked around at least for now.
2021-05-01regen llvm man pages from rst withJonathan Gray
cd /usr/src/gnu/llvm/llvm/docs gmake -f Makefile.sphinx man cd /usr/src/gnu/llvm/clang/docs gmake -f Makefile.sphinx man cmake -DLLVM_ENABLE_SPHINX=ON -DLLDB_INCLUDE_TESTS=OFF /usr/src/gnu/llvm/lldb/ make docs-lldb-man
2021-04-29regenJonathan Gray
2021-04-29add RISCVJonathan Gray
2021-04-29riscv64 clang support.Dale Rahn
With several fixes from review integrated. ok patrick@
2021-04-28Update clang build infrastructure for LLVM 11.1.0.Patrick Wildt
Heavy lifting by mortimer@, thank you so much!
2021-02-14Shuffle how lldb register contexts are built.mortimer
Instead of using #if defined(__arch__) to include / exclude the entire contents of the NativeRegisterContext implementations, use a single NativeRegisterContextOpenBSD_arch which includes the right arch specific register context, and provides a dummy implementation for unsupported architectures. This allows building lldb on architectures which do not have a register context implementation so it can be used as a remote client. ok patrick@
2021-02-10only amd64 & arm64 lldb work at the momentTheo de Raadt
2021-02-09Build and install lldb.Patrick Wildt
Discussed with deraadt@
2020-12-01Implement Loongson 2F BTB bug workaround in clangVisa Hankala
This adapts the -mfix-loongson2f-btb workaround from as(1) to LLVM/clang. Because LLVM emits machine code directly without using assembly as intermediary form, the workaround has to be applied in the compiler backend in addition to the integrated assembler. Discussed with miod@ OK mortimer@
2020-11-10Sort list of archs in alphabetical order.Patrick Wildt
From Brad ok mortimer@
2020-10-12Disable retguard for clang build.mortimer
Fixes build on powerpc
2020-10-12Add RETGUARD implementation for powerpc and powerpc64.mortimer
ok deraadt@ kettenis@
2020-08-09Update build infrastructure for LLVM 10.0.1.Patrick Wildt
2020-08-03Update build infrastructure for LLVM 10.0.0.Patrick Wildt
ok hackroom@ tested by plenty
2020-07-02We need the same header files on powerpc64 as we have on powerpc.Mark Kettenis
ok deraadt@
2020-05-30Initial set of changes to build powerpc64 toolchain.Dale Rahn
Disable PIC/PIE for powerpc64 for now.
2020-03-04crank major versions of libLLVM libc++ libc++abigkoehler
OpenBSD macppc builds these libs with clang. Their ABI is changing because of clang -msvr4-struct-return