summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-rc/ResourceScriptParser.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-10-11 20:12:09 +0000
committerZachary Turner <zturner@google.com>2017-10-11 20:12:09 +0000
commitfa0ca6cbd01c6289ef4073073a84200a883eb3c5 (patch)
tree2abc3114b64d579879e5787ea6a3e9cb9adbce79 /llvm/tools/llvm-rc/ResourceScriptParser.cpp
parent210d9f43a33e98bb60231972c618482de1fdc0d6 (diff)
downloadbcm5719-llvm-fa0ca6cbd01c6289ef4073073a84200a883eb3c5.tar.gz
bcm5719-llvm-fa0ca6cbd01c6289ef4073073a84200a883eb3c5.zip
[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 llvm-svn: 315499
Diffstat (limited to 'llvm/tools/llvm-rc/ResourceScriptParser.cpp')
-rw-r--r--llvm/tools/llvm-rc/ResourceScriptParser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/llvm-rc/ResourceScriptParser.cpp b/llvm/tools/llvm-rc/ResourceScriptParser.cpp
index 4acae313558..769b47a20bd 100644
--- a/llvm/tools/llvm-rc/ResourceScriptParser.cpp
+++ b/llvm/tools/llvm-rc/ResourceScriptParser.cpp
@@ -12,6 +12,10 @@
//===---------------------------------------------------------------------===//
#include "ResourceScriptParser.h"
+#include "llvm/Option/ArgList.h"
+#include "llvm/Support/FileSystem.h"
+#include "llvm/Support/Path.h"
+#include "llvm/Support/Process.h"
// Take an expression returning llvm::Error and forward the error if it exists.
#define RETURN_IF_ERROR(Expr) \
OpenPOWER on IntegriCloud