Index: clang/include/clang/Basic/CMakeLists.txt =================================================================== --- clang/include/clang/Basic/CMakeLists.txt +++ clang/include/clang/Basic/CMakeLists.txt @@ -41,12 +41,6 @@ TARGET ClangAttrHasAttributeImpl ) -clang_tablegen(OpenCLBuiltins.inc - -I ${CMAKE_CURRENT_SOURCE_DIR}/../../ -gen-clang-opencl-builtins - SOURCE OpenCLBuiltins.td - TARGET ClangOpenCLBuiltinsImpl - ) - # ARM NEON clang_tablegen(arm_neon.inc -gen-arm-neon-sema SOURCE arm_neon.td Index: clang/lib/Sema/CMakeLists.txt =================================================================== --- clang/lib/Sema/CMakeLists.txt +++ clang/lib/Sema/CMakeLists.txt @@ -1,3 +1,8 @@ +clang_tablegen(OpenCLBuiltins.inc -gen-clang-opencl-builtins + SOURCE OpenCLBuiltins.td + TARGET ClangOpenCLBuiltinsImpl + ) + set(LLVM_LINK_COMPONENTS Support ) @@ -17,6 +22,7 @@ IdentifierResolver.cpp JumpDiagnostics.cpp MultiplexExternalSemaSource.cpp + OpenCLBuiltins.inc ParsedAttr.cpp Scope.cpp ScopeInfo.cpp Index: clang/lib/Sema/SemaLookup.cpp =================================================================== --- clang/lib/Sema/SemaLookup.cpp +++ clang/lib/Sema/SemaLookup.cpp @@ -46,7 +46,7 @@ #include #include -#include "clang/Basic/OpenCLBuiltins.inc" +#include "OpenCLBuiltins.inc" using namespace clang; using namespace sema;