HomeFreeBSD

tools/build/cross-build: Fix building libllvmminimal on Linux

Description

tools/build/cross-build: Fix building libllvmminimal on Linux

There is a used member in glibc's posix_spawn_file_actions_t in
spawn.h, so we must temporarily undefine
used when including it,
otherwise Support/Unix/Program.inc fails to build. This is based on
similar handling for __unused in other headers.

Fixes: 31ba4ce8898f ("Allow bootstrapping llvm-tblgen on macOS and Linux")
MFC after: 1 week

Details

Provenance
jrtc27Authored on Aug 12 2021, 10:50 PM
Parents
rGcef65082ae12: bsd.compiler.mk: Fix cross-building from non-FreeBSD
Branches
Unknown
Tags
Unknown