Skip to content

Commit

Permalink
try find_package
Browse files Browse the repository at this point in the history
Differential Revision: D48459007

fbshipit-source-id: 8471743b63c794e46814da0bd42243d73bfec097
  • Loading branch information
openrichardfb authored and facebook-github-bot committed Aug 18, 2023
1 parent 043edc5 commit 622b7b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ else
fi

if [ "${CIRCLE_JOB}" != "COVERAGE" ] && [ "${CIRCLE_JOB}" != "CHECK_CLANG_AND_PEP8_FORMAT" ] && [ "${CIRCLE_JOB}" != "PYTORCH" ]; then
# sleep 2h
sleep 2h
cmake -GNinja ${CMAKE_ARGS[*]} ../
ninja
fi
Expand Down
5 changes: 5 additions & 0 deletions lib/LLVMIRCodeGen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ add_library(LLVMIRCodeGen
LLVMIRGen.cpp
LLVMBackend.cpp)

find_package(LLVM REQUIRED CONFIG)

include_directories(${LLVM_INCLUDE_DIRS})
add_definitions(${LLVM_DEFINITIONS})

llvm_map_components_to_libnames(LLVM_TARGET_LIBRARIES ${LLVM_TARGETS_TO_BUILD})
target_link_libraries(LLVMIRCodeGen
PUBLIC
Expand Down

0 comments on commit 622b7b3

Please sign in to comment.