Small fixes from review.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
Keith Rothman 2021-02-15 08:27:19 -08:00
parent e60dda57f3
commit 6b04fd1524
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ The following packages need to be installed for building nextpnr, independent
of the selected architecture: of the selected architecture:
- CMake 3.3 or later - CMake 3.3 or later
- Modern C++11 compiler (`clang-format` required for development) - Modern C++14 compiler (`clang-format` required for development)
- Python 3.5 or later, including development libraries (`python3-dev` for Ubuntu) - Python 3.5 or later, including development libraries (`python3-dev` for Ubuntu)
- on Windows make sure to install same version as supported by [vcpkg](https://github.com/Microsoft/vcpkg/blob/master/ports/python3/CONTROL) - on Windows make sure to install same version as supported by [vcpkg](https://github.com/Microsoft/vcpkg/blob/master/ports/python3/CONTROL)
- Boost libraries (`libboost-dev libboost-filesystem-dev libboost-thread-dev libboost-program-options-dev libboost-iostreams-dev libboost-dev` or `libboost-all-dev` for Ubuntu) - Boost libraries (`libboost-dev libboost-filesystem-dev libboost-thread-dev libboost-program-options-dev libboost-iostreams-dev libboost-dev` or `libboost-all-dev` for Ubuntu)

View File

@ -43,7 +43,7 @@ static void write_message(::capnp::MallocMessageBuilder & message, const std::st
struct StringEnumerator { struct StringEnumerator {
std::vector<std::string> strings; std::vector<std::string> strings;
std::map<std::string, size_t> string_to_index; std::unordered_map<std::string, size_t> string_to_index;
size_t get_index(const std::string &s) { size_t get_index(const std::string &s) {
auto result = string_to_index.emplace(s, strings.size()); auto result = string_to_index.emplace(s, strings.size());