[all-commits] [llvm/llvm-project] a6ea01: [llvm] CYGWIN: Fix build of some plugins/library/u...
Carlo Bramini via All-commits
all-commits at lists.llvm.org
Mon Jul 10 12:44:39 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a6ea0185d698dfce0811c37e910d5c08b6a20ed0
https://github.com/llvm/llvm-project/commit/a6ea0185d698dfce0811c37e910d5c08b6a20ed0
Author: Carlo Bramini <carlo_bramini at users.sourceforge.net>
Date: 2023-07-10 (Mon, 10 Jul 2023)
Changed paths:
M llvm/examples/Bye/CMakeLists.txt
M llvm/examples/IRTransforms/CMakeLists.txt
M llvm/unittests/Analysis/InlineAdvisorPlugin/CMakeLists.txt
M llvm/unittests/Analysis/InlineOrderPlugin/CMakeLists.txt
M llvm/unittests/Passes/Plugins/CMakeLists.txt
Log Message:
-----------
[llvm] CYGWIN: Fix build of some plugins/library/unittests
CYGWIN uses the same format of WIN32 for shared libraries.
As the comment says: "a shared library can't have undefined references", in this case CYGWIN must be handled like WIN32 by CMakeLists.txt, otherwise you will get several errors when linking because some symbols are undefined.
Attached patch fixes this issue and allows to complete the build process for those targets.
Differential Revision: https://reviews.llvm.org/D154794
More information about the All-commits
mailing list