Skip to content

Commit

Permalink
Add intrinsics_gen as a dependency when precompiling headers
Browse files Browse the repository at this point in the history
Add intrinsics_gen as a dependency when precompiling headers
  • Loading branch information
jaladreips authored and igcbot committed Jun 21, 2023
1 parent cd9b719 commit 5aec2f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions IGC/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1865,6 +1865,9 @@ message(STATUS "Using precompiled headers")
endif()

foreach(_target ${PCHTargets})
# make sure *inc files are generated before building precompiled header files
add_dependencies(${_target} intrinsics_gen)

target_precompile_headers(${_target}
PRIVATE
"$<$<COMPILE_LANGUAGE:CXX>:${IGC_BUILD__IGC_SRC_DIR}/PCH/llvm.h>"
Expand Down

0 comments on commit 5aec2f7

Please sign in to comment.