[PATCH] D38740: [llvm-rc] Handle the /I option

Zachary Turner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 10 09:08:45 PDT 2017


zturner created this revision.
Herald added a subscriber: hiraditya.

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.


https://reviews.llvm.org/D38740

Files:
  llvm/include/llvm/Support/Process.h
  llvm/lib/Support/Process.cpp
  llvm/test/tools/llvm-rc/Inputs/deep-include.rc
  llvm/test/tools/llvm-rc/Inputs/include.rc
  llvm/test/tools/llvm-rc/Inputs/nested/nested-bitmap.bmp
  llvm/test/tools/llvm-rc/include-paths.test
  llvm/tools/llvm-rc/ResourceFileWriter.cpp
  llvm/tools/llvm-rc/ResourceFileWriter.h
  llvm/tools/llvm-rc/ResourceScriptParser.cpp
  llvm/tools/llvm-rc/ResourceScriptParser.h
  llvm/tools/llvm-rc/llvm-rc.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38740.118403.patch
Type: text/x-patch
Size: 15602 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171010/1c5ec7e8/attachment.bin>


More information about the llvm-commits mailing list