Skip to content

Conversation

fanquake
Copy link
Contributor

This is going to be removed upstream: bitcoin/bitcoin#29185.

Skip CFLAGS for now. It looks like previously this was not getting properly applied, but would now run into a (fixed in later versions) LLVM bug.
Set NM & STRIP to llvm-* so we are consistently using LLVM tools.

This is going to be removed upstream.
bitcoin/bitcoin#29185.
Copy link

fanquake (verified) is either the primary contact or is in the CCs list of projects/bitcoin-core.

@fanquake fanquake marked this pull request as draft January 15, 2024 13:23
Copy link
Contributor

@maflcko maflcko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@fanquake fanquake marked this pull request as ready for review January 15, 2024 14:13
@DavidKorczynski DavidKorczynski merged commit abfa448 into google:master Jan 16, 2024
@fanquake fanquake deleted the bitcoin_lto_flags branch January 16, 2024 09:18
# "/usr/bin/ld: error: Failed to link module lib/libevent.a.llvm.17822.buffer.c: Expected at most one ThinLTO module per bitcode file".
# export CFLAGS="$CFLAGS -flto=thin"
export CXXFLAGS="$CXXFLAGS -flto=thin"
export LDFLAGS="-flto=thin"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still not sure that setting LDFLAGS is needed at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants