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

(cherry picked from commit 8a1895a3fa6f634e9f459b6b62321a61c7941bdc)

Details

Provenance
jrtc27Authored on Aug 12 2021, 10:50 PM
Parents
rG23181404aad8: riscv: Fix pmap_alloc_l2 when it should allocate a new L1 entry
Branches
Unknown
Tags
Unknown