[PATCH] D102090: [CMake][ELF] Add -fno-semantic-interposition and -Bsymbolic-functions
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 11 01:01:50 PDT 2021
MaskRay marked an inline comment as done.
MaskRay added a comment.
In D102090#2749473 <https://reviews.llvm.org/D102090#2749473>, @rnk wrote:
> +1 to the idea, but I have no idea if this is the right cmake spot
>
> If we've decided to actually care about the shared library build, should we also consider using `-fvisibility-inlines-hidden`?
Line 329: `check_cxx_compiler_flag("-fvisibility-inlines-hidden" SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG)`.
llvm-project has been using this since 2012. With this flag, taking the address of an inline function may be different in different modules.
So -fno-semantic-interposition and -Bsymbolic-functions will now complement the existing option:)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102090/new/
https://reviews.llvm.org/D102090
More information about the cfe-commits
mailing list