Files
revng-revng/lib/Support/ResourceFinder.cpp
Massimo Fioravanti afbebaf531 ProgramRunner: fix misuse of executable path
ProgramRunner was using garbage data instead of correctly using the path
to the current executable directory.
2022-01-17 18:17:54 +01:00

28 lines
418 B
C++

//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include "llvm/Support/Path.h"
#include "revng/Support/ResourceFinder.h"
using namespace llvm::sys::path;
namespace revng {
PathList ResourceFinder({
#ifdef BUILD_PATH
BUILD_PATH,
#endif
parent_path(parent_path(getCurrentExecutableFullPath())).str(),
#ifdef INSTALL_PATH
INSTALL_PATH,
#endif
});
} // namespace revng