libRemarks.{so,dylib}: remove Remarks.dylib.exports
authorFangrui Song <i@maskray.me>
Thu, 2 Feb 2023 23:13:04 +0000 (15:13 -0800)
committerFangrui Song <i@maskray.me>
Thu, 2 Feb 2023 23:13:04 +0000 (15:13 -0800)
commitbf07de38b05e4c952beb4009aa15060d0e4f7cc7
tree6bea9789cb8e0c8b138d614ce252eb34088819b7
parentc294bdd64768e0954e7dec8ed878bdac7ce7530f
libRemarks.{so,dylib}: remove Remarks.dylib.exports

Remarks.exports is only intended for NOT (BUILD_SHARED_LIBS OR LLVM_LINK_LLVM_DYLIB)
builds.

For (unintended use case) BUILD_SHARED_LIBS OR LLVM_LINK_LLVM_DYLIB (the latter
is used by some Linux distros), the library defines just one symbol on ELF.
There is no need to use a version script.

I think this is a more proper solution than D139932 and fixes `symbol not
defined` errors after lld default change D135402.
llvm/tools/remarks-shlib/CMakeLists.txt
llvm/tools/remarks-shlib/Remarks.dylib.exports [deleted file]