Remove local modifications.

This commit is contained in:
Rasmus Munk Larsen 2023-10-02 11:07:28 -07:00 committed by Lofty
parent ff915d21b6
commit cb9f318d37
2 changed files with 1 additions and 8 deletions

View File

@ -74,7 +74,6 @@
#include <errno.h>
#include "libs/json11/json11.hpp"
#include "devtools/build/runtime/get_runfiles_dir.h"
YOSYS_NAMESPACE_BEGIN
@ -984,8 +983,7 @@ void init_share_dirname()
return;
}
# ifdef YOSYS_DATDIR
proc_share_path = devtools_build::GetRunfilesDir() + "/";
proc_share_path += YOSYS_DATDIR "/";
proc_share_path = YOSYS_DATDIR "/";
if (check_file_exists(proc_share_path, true)) {
yosys_share_dirname = proc_share_path;
return;

View File

@ -343,11 +343,6 @@ bool is_absolute_path(std::string filename);
void remove_directory(std::string dirname);
std::string escape_filename_spaces(const std::string& filename);
using ys_size_type = int64_t; // Large enough to deal with large number of data, but also not experiencing unsigned overflow.
// TODO(hzeller): these need to return ys_size_type, but in the course of
// refactoring, each type will be handled separately (and gets their own GetSize() function). After all
// size types are converted, this template can be changed to return ys_size_type.
template<typename T> int GetSize(const T &obj) { return obj.size(); }
inline int GetSize(RTLIL::Wire *wire);