Fix #29274: problem compiling cycles opencl kernel from directory with spaces.

Some drivers don't support passing include paths with spaces in them, nor does
the opencl spec specify anything about how to quote/escape such paths, so for
now we just resolved #includes ourselves. Alternative would have been to use c
preprocessor, but this also resolves all #ifdefs, which we do not want.
This commit is contained in:
2011-11-22 16:38:58 +00:00
parent 36fa74b50e
commit eb2baf9abc
5 changed files with 47 additions and 6 deletions

View File

@@ -46,6 +46,8 @@ void path_create_directories(const string& path);
bool path_write_binary(const string& path, const vector<uint8_t>& binary);
bool path_read_binary(const string& path, vector<uint8_t>& binary);
string path_source_replace_includes(const string& source, const string& path);
CCL_NAMESPACE_END
#endif