intel / opencl-clang

Other
136 stars 62 forks source link

Do not apply patches if sub non-git repo is located in a git repo. #545

Closed haonanya closed 4 months ago

haonanya commented 4 months ago

follow up https://github.com/intel/opencl-clang/pull/539. Also add an option to control patch apply which is default on. Pass -DAPPLY_PATCHES=OFF will skip patch apply process.

th0ma7 commented 4 months ago

Tested and confirmed working as expected, I can now build with plain source tar ball and it stoped affecting my running (and unrelated) git repository.

Still I suggest adding a cmake variable to enforce not applying patches and/or using non-git repository sources as it could serve other means as well.