Verified Commit 97db5662 authored by Charlotte Delenk's avatar Charlotte Delenk
Browse files

Mark entrypointFunctions as used for clang+lto



LLVM currently ignores inline assembly references to symbols during
dead code and data elimination while linking with link-time optimizations
enabled.

This manifests in a very large amount of unresolved references to
entrypointFunctions when building libglvnd using clang with LTO enabled.

This issue fixes #220 by marking the entrypointFunctions array as used,
using a compiler attribute.

Signed-off-by: Charlotte Delenk's avatarCharlotte Delenk <darkkirb@darkkirb.de>
parent 34a07551
Pipeline #405240 passed with stages
in 2 minutes and 58 seconds