mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
afbebaf531
ProgramRunner was using garbage data instead of correctly using the path to the current executable directory.
28 lines
418 B
C++
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
|