Newer
Older
if (HostTargetNum != 1) {
Error = true;

Eugene Zelenko
committed
errs() << "error: expecting exactly one host target but got "
<< HostTargetNum << ".\n";
}
if (Error)
return 1;

Samuel Antao
committed
// Save the current executable directory as it will be useful to find other
// tools.

Eugene Zelenko
committed
BundlerExecutable = sys::fs::getMainExecutable(argv[0], &BundlerExecutable);

Samuel Antao
committed
return Unbundle ? UnbundleFiles() : BundleFiles();
}