mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
da7701bd4e
We used to collect all binaries into the `bin/` directory. However this led to confusions since certain commands where available both as `revng-command` and `revng command`. This commit moves all the executables except `revng` into `libexec/revng`, which, according to FHS, is dedicated to "internal binaries that are not intended to be executed directly by users or shell scripts".
26 lines
488 B
C++
26 lines
488 B
C++
#pragma once
|
|
|
|
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
#include <string>
|
|
|
|
#include "llvm/ADT/ArrayRef.h"
|
|
#include "llvm/ADT/SmallVector.h"
|
|
#include "llvm/ADT/StringRef.h"
|
|
|
|
class ProgramRunner {
|
|
private:
|
|
llvm::SmallVector<std::string, 64> Paths;
|
|
|
|
public:
|
|
ProgramRunner();
|
|
|
|
/// returns the exit code of the program.
|
|
[[nodiscard]] int
|
|
run(llvm::StringRef ProgramName, llvm::ArrayRef<std::string> Args);
|
|
};
|
|
|
|
extern ProgramRunner Runner;
|