This is not only the directory that include files are searched for, which could be handled by a C/C++ preprocessor, but also controls where resource files are searched for. For example, if you specify /I foo and then have a statement like mybmp BITMAP foo.bmp, then foo.bmp is searched for in the directory foo. A C preprocessor can't handle this, so we still need logic for it. The rules implemented in this patch conform to the algorithm described in MSDN for how rc searches for resources.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
lgtm
llvm/tools/llvm-rc/ResourceFileWriter.cpp | ||
---|---|---|
1439 | Maybe add a similar comment? // 4. Last, search INCLUDE paths from the environment. |
Maybe add a similar comment?