clspv icon indicating copy to clipboard operation
clspv copied to clipboard

Unable to specify a valid path for opencl-c-base.h

Open bwarden opened this issue 10 months ago • 2 comments

In Clear Linux, we provide /usr/include/cclang/opencl-c-base.h. Unfortunately, there's no way to specify this path given the construction of BAKE_FILE_BASE_HEADER_FILE here:

https://github.com/google/clspv/blob/55000a5855e802c3986a0b29320bd725602e890d/cmake/CMakeLists.txt#L48

bwarden avatar Mar 06 '25 17:03 bwarden

Could you explain why one would want to use another opencl-c-base.h than the one in the clang source?

Feel free to update the cmake file to make it configurable.

rjodinchr avatar Mar 25 '25 15:03 rjodinchr

I was pulling in clspv as a 2nd-level dependency for another project, the DPC++ compiler, which is a custom fork of llvm. Now I see that clspv is itself a custom fork of llvm, so I see your point and I'll try to accomplish this a different way.

bwarden avatar Mar 25 '25 23:03 bwarden