Skip to content

Commit

Permalink
Explicitly look for .dylib and .dll in addition to .so. Not providing…
Browse files Browse the repository at this point in the history
… an extension does not seem to work for Enzyme plugin.
  • Loading branch information
nkoukpaizan committed Jan 28, 2025
1 parent dd6de43 commit 5940303
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/FindEnzyme.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ message(STATUS "Enzyme configuration found: ${Enzyme_CONFIG}")
find_library(ENZYME_LLVM_PLUGIN_LIBRARY
NAMES
LLVMEnzyme-${Enzyme_LLVM_VERSION_MAJOR}.so
LLVMEnzyme-${Enzyme_LLVM_VERSION_MAJOR}.dylib
LLVMEnzyme-${Enzyme_LLVM_VERSION_MAJOR}.dll
PATHS
${ENZYME_DIR}
ENV LD_LIBRARY_PATH
Expand Down

0 comments on commit 5940303

Please sign in to comment.