Files
revng-revng/lib/Support/ResourceFinder.cpp
Giacomo Vercesi 168eab6cc5 Use /proc/self/maps to determine root
Use the path of the mapped librevngSupport.so to determine the root
directory.
2022-04-28 22:18:08 +02:00

21 lines
297 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"
namespace revng {
PathList ResourceFinder({
getCurrentRoot(),
#ifdef INSTALL_PATH
INSTALL_PATH,
#endif
});
} // namespace revng