]> granicus.if.org Git - llvm/commit
[llvm-rc] Use proper search algorithm for finding resources.
authorZachary Turner <zturner@google.com>
Wed, 11 Oct 2017 20:12:09 +0000 (20:12 +0000)
committerZachary Turner <zturner@google.com>
Wed, 11 Oct 2017 20:12:09 +0000 (20:12 +0000)
commite315d738d1b61d5620a6157b76ba18a311868e6d
tree5a2a8c92e965fe54e89ae2d80eac3fbdc03741d0
parent7d7645fe0b3495ab4c84ff33fdd3f03ebdef43db
[llvm-rc] Use proper search algorithm for finding resources.

Previously we would only look in the current directory for a
resource, which might not be the same as the directory of the
rc file.  Furthermore, MSVC rc supports a /I option, and can
also look in the system environment.  This patch adds support
for this search algorithm.

Differential Revision: https://reviews.llvm.org/D38740

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315499 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/Support/Process.h
lib/Support/Process.cpp
test/tools/llvm-rc/Inputs/deep-include.rc [new file with mode: 0644]
test/tools/llvm-rc/Inputs/include.rc [new file with mode: 0644]
test/tools/llvm-rc/Inputs/nested/nested-bitmap.bmp [new file with mode: 0644]
test/tools/llvm-rc/include-paths.test [new file with mode: 0644]
test/tools/llvm-rc/tag-html.test
tools/llvm-rc/ResourceFileWriter.cpp
tools/llvm-rc/ResourceFileWriter.h
tools/llvm-rc/ResourceScriptParser.cpp
tools/llvm-rc/ResourceScriptParser.h
tools/llvm-rc/llvm-rc.cpp