[libcxx-commits] [libcxx] [libcxxabi] [libcxx] Use alias for detecting overriden function (PR #114961)

Nico Weber via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 19 12:53:02 PST 2024


nico wrote:

It repros trivially if you build libc++ with `-flto=thin`.

Here's a script that makes repro pretty easy (zipped because github won't let me attach it otherwise).

[standalone-repro.sh.zip](https://github.com/user-attachments/files/18203112/standalone-repro.sh.zip)

`chmod +x` it, put it in the root of your llvm checkout, tweak `GENFILES_DIR` to point at where a generated `__config_site` and `__assertion_handler` are, and run it. It should succeed. Then add `-flto=thin` on line 93, and run it again. You'll get linker errors. After reverting this PR, it works again.

(You'll have to run this on a mac.)

https://github.com/llvm/llvm-project/pull/114961


More information about the libcxx-commits mailing list