]> git.ipfire.org Git - thirdparty/vectorscan.git/commit
Improve the (cross-)build experience especially with LLVM (#353)
authortnias <phil@grmr.de>
Sun, 12 Oct 2025 15:37:47 +0000 (17:37 +0200)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Wed, 29 Oct 2025 22:05:00 +0000 (00:05 +0200)
commit44dc317d9d278cb6b2cacb43d33a1ab3b9197463
tree18422d2d128890a3850c3a33ef607fc7d34bc508
parentf472bfee05c88e3e46c149df1028557f47388b0e
Improve the (cross-)build experience especially with LLVM (#353)

* Suppress clang warnings caused by boost headers

* Make binutils selectable via environment variables

Some build environments specify what tools to use via environment variables.

e.g. NM could be 'x86_64-unknown-linux-gnu-nm' when cross-compiling

* Use llvm-nm friendly non-short format value

LLVM's nm implementaion (llvm-nm) wants the entire string to match.
It doesn't allow just 'p' it wants 'posix'.

- https://github.com/llvm/llvm-project/blob/llvmorg-21.1.3/llvm/tools/llvm-nm/llvm-nm.cpp#L2435-L2448

The nm implementations from GNU binutils and FreeBSD parse the format
argument value only by looking at the first character.
They are accept both 'p' and 'posix'.

- https://github.com/bminor/binutils-gdb/blob/binutils-2_45/binutils/nm.c#L410-L438
- https://github.com/freebsd/freebsd-src/blob/release/14.3.0/contrib/elftoolchain/nm/nm.c#L506-L529
cmake/build_wrapper.sh
cmake/cflags-generic.cmake