Skip to content

Commit

Permalink
Dep
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanradanov committed Feb 28, 2024
1 parent 5789f3a commit 9cce16f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions enzyme/Enzyme/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,13 @@ add_public_tablegen_target(BlasTAIncGen)
add_public_tablegen_target(BlasDiffUseIncGen)

set(LLVM_TARGET_DEFINITIONS Clang/include_utils.td)
# Need to explicitly set included files as dependencies
set(ARG_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/Runtime/MPFR.cpp" CACHE INTERNAL "deps")
# Cmake tablegen adds the current cmake dir to the include path and bazel adds
# the directory that contains the .td file, that's why we need the include here
enzyme_tablegen(IncludeUtils.inc -gen-header-strings -I${CMAKE_CURRENT_SOURCE_DIR}/Clang/)
add_public_tablegen_target(IncludeUtilsIncGen)
unset(ARG_DEPENDS)

include_directories(${CMAKE_CURRENT_BINARY_DIR})

Expand Down

0 comments on commit 9cce16f

Please sign in to comment.