mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
31 lines
432 B
C++
31 lines
432 B
C++
//
|
|
// Copyright (c) rev.ng Srls 2017-2020.
|
|
//
|
|
|
|
// LLVM includes
|
|
#include <llvm/Support/Path.h>
|
|
|
|
#include "revng-c/DecompilerResourceFinder/ResourceFinder.h"
|
|
|
|
namespace revng {
|
|
|
|
namespace c {
|
|
|
|
class PathList ResourceFinder({
|
|
|
|
#ifdef BUILD_PATH
|
|
BUILD_PATH,
|
|
#endif
|
|
|
|
llvm::sys::path::parent_path(getCurrentExecutableFullPath()).str(),
|
|
|
|
#ifdef INSTALL_PATH
|
|
INSTALL_PATH,
|
|
#endif
|
|
|
|
});
|
|
|
|
} // end namespace c
|
|
|
|
} // end namespace revng
|