================ @@ -10,8 +10,10 @@ link_flags = [] if @LIBUNWIND_ENABLE_CET@: compile_flags.append('-fcf-protection=full') -if '@CMAKE_SYSTEM_NAME@' == 'Linux': - link_flags.append('-Wl,--export-dynamic') +# Add -Wl,--export-dynamic if supported by the linker (this CMake variable will +# be empty for Apple platforms). ---------------- brad0 wrote:
I don't really like the idea of the comment in the round brackets. I think it would be better to just say something like.. ```On ELF platforms, add -Wl,--export-dynamic if supported by the linker.``` https://github.com/llvm/llvm-project/pull/67205 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits