Add support for -I command-line argument to specify #include search directories.

This commit is contained in:
Matt Pharr
2012-02-07 08:39:01 -08:00
parent 5b4673e8eb
commit bb8e13e3c9
3 changed files with 28 additions and 0 deletions

4
ispc.h
View File

@@ -423,6 +423,10 @@ struct Globals {
/** Arguments to pass along to the C pre-processor, if it is run on the
program before compilation. */
std::vector<std::string> cppArgs;
/** Additional user-provided directories to search when processing
#include directives in the preprocessor. */
std::vector<std::string> includePath;
};
enum {