This patch aims at removing redundancy in the way include paths for the regular and offloading toolchains are appended to the arguments list in the clang tool.
This was suggested by @rsmith in response to r275931.
Differential D22518
Refactor how include paths are appended to the command arguments. sfantao on Jul 19 2016, 8:14 AM. Authored by
Details This patch aims at removing redundancy in the way include paths for the regular and offloading toolchains are appended to the arguments list in the clang tool. This was suggested by @rsmith in response to r275931.
Diff Detail Event Timeline
Comment Actions Hi Art, Richard, Thanks for looking at this patch. I tried to address Richard concerns in the last diff. Let me know your thoughts, Thanks again,
Comment Actions Samuel, the patch breaks CUDA. With the patch clang no longer adds include paths to standard c++ library during device-side compilation. Comment Actions Hi Art, The enumerators were switched... It should be fixed in r277064. I'll post a patch with regression test to catch the issue. Sorry for the trouble, |
The OFK_Host / OFK_Cuda arguments here are reversed from the other two cases. Is that a bug that's fixed by this change, or a bug that's introduced by this change? :)
Either way it seems that we're missing test coverage.