Skip to content
Snippets Groups Projects
ClangOffloadBundler.cpp 32.8 KiB
Newer Older
  if (HostTargetNum != 1) {
    Error = true;
    errs() << "error: expecting exactly one host target but got "
           << HostTargetNum << ".\n";
  // Save the current executable directory as it will be useful to find other
  // tools.
  BundlerExecutable = sys::fs::getMainExecutable(argv[0], &BundlerExecutable);
  return Unbundle ? UnbundleFiles() : BundleFiles();
}