Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename opencl-c headers into opencl-c-intel #453

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lwesiers
Copy link
Contributor

@lwesiers lwesiers commented Jun 3, 2023

No description provided.

@lwesiers lwesiers force-pushed the opencl-c_2_opencl-c-intel branch 2 times, most recently from ac20117 to af290b5 Compare June 5, 2023 10:37
file(READ "${CLANG_SOURCE_DIR}/lib/Headers/opencl-c.h" opencl_c_old)
string(REGEX REPLACE "#include \"opencl-c-base\.h\"" "#include \"opencl-c-intel-base.h\"" opencl_c_intel_new "${opencl_c_old}")
file(WRITE "${CLANG_SOURCE_DIR}/lib/Headers/opencl-c-intel.h" "${opencl_c_intel_new}")
execute_process(COMMAND ${CMAKE_COMMAND} -E copy "${CLANG_SOURCE_DIR}/lib/Headers/opencl-c-base.h" "${CLANG_SOURCE_DIR}/lib/Headers/opencl-c-intel-base.h")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to do the same copy/replace for the case of USE_PREBUILT_LLVM.
I'm afraid we're not able to create a new file opencl-c-intel-base.h in clang include directory installed by system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants