0
0
mirror of https://github.com/llvm/llvm-project.git synced 2025-04-21 12:36:46 +00:00

libclc: Fix building against an llvm build directory

Reviewed By: thieta

Differential Revision: https://reviews.llvm.org/D142718

(cherry picked from commit 8040e3a4deeb25edc34fb4f89e032ff58ad50572)
This commit is contained in:
Tom Stellard 2023-01-27 11:15:54 -08:00
parent f797fef100
commit 4208362fe1

@ -105,7 +105,10 @@ endif()
enable_language( CLC LLAsm )
# This needs to be set before any target that needs it
include_directories( ${LLVM_INCLUDE_DIR} )
# We need to use LLVM_INCLUDE_DIRS here, because if we are linking to an
# llvm build directory, this includes $src/llvm/include which is where all the
# headers are not $build/include/ which is what LLVM_INCLUDE_DIR is set to.
include_directories( ${LLVM_INCLUDE_DIRS} )
# Setup prepare_builtins tools
set(LLVM_LINK_COMPONENTS