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

Replace C++11 raw string literal by C array #90

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

Conversation

aleksander
Copy link

This commit replaces C++11 raw string literal R"_mrb_( ... )_mrb_" by C array.
Main reason for this is possibility to compile with clang instead of gcc.

echo ')_mrb_";' >>$@
_kernel.h: input.cl param.h
cpp $< ocl.code
echo -ne "\x00" >> ocl.code
Copy link

Choose a reason for hiding this comment

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

echo -n is not portable, please use printf instead.

@aleksander aleksander force-pushed the clcode-as-c-array branch 2 times, most recently from fc89d50 to 7b900f7 Compare December 14, 2016 19:46
@mbevand
Copy link
Owner

mbevand commented Dec 19, 2016

This seems good. I'll merge this at some point.

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.

3 participants