[PATCH] D68931: [clang] [clang-offload-bundler] Fix finding installed llvm-objcopy

Michał Górny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 13 22:38:45 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rGf89e758d886a: [clang] [clang-offload-bundler] Fix finding installed llvm-objcopy (authored by mgorny).
Herald added a project: clang.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68931/new/

https://reviews.llvm.org/D68931

Files:
  clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp


Index: clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
===================================================================
--- clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
+++ clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
@@ -468,6 +468,8 @@
     // Find llvm-objcopy in order to create the bundle binary.
     ErrorOr<std::string> Objcopy = sys::findProgramByName(
         "llvm-objcopy", sys::path::parent_path(BundlerExecutable));
+    if (!Objcopy)
+      Objcopy = sys::findProgramByName("llvm-objcopy");
     if (!Objcopy) {
       errs() << "error: unable to find 'llvm-objcopy' in path.\n";
       return true;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68931.224807.patch
Type: text/x-patch
Size: 655 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191014/9ab93de1/attachment.bin>


More information about the cfe-commits mailing list