Skip to content

Commit

Permalink
Set up fmt
Browse files Browse the repository at this point in the history
This commit finalizes fixing spdlog::info(...) commit chain.
  • Loading branch information
ssayin committed Jul 27, 2024
1 parent bf5aceb commit 80af6b8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@
[submodule "external/riscv-arch-test"]
path = external/riscv-arch-test
url = https://github.com/riscv-non-isa/riscv-arch-test.git
[submodule "external/fmt"]
path = external/fmt
url = https://github.com/fmtlib/fmt.git
1 change: 1 addition & 0 deletions external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ add_subdirectory(ELFIO)
add_subdirectory(riscv-disas)
add_subdirectory(CLI11)
add_subdirectory(json)
add_subdirectory(fmt)

add_library(boost_asio INTERFACE)
add_library(Boost::asio ALIAS boost_asio)
Expand Down
1 change: 1 addition & 0 deletions external/fmt
Submodule fmt added at de6ed8
2 changes: 1 addition & 1 deletion riscv32-sim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ target_link_libraries(
CLI11
riscv_disas
nlohmann_json
spdlog_header_only
fmt::fmt
$<$<BOOL:${MINGW}>:ws2_32>
${TCP_LIB}
riscv32-sim-common
Expand Down
4 changes: 2 additions & 2 deletions riscv32-sim/include/util/format_helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include <iterator>
#include <ostream>

#include "spdlog/fmt/bundled/core.h"
#include "spdlog/spdlog.h"
#include "fmt/core.h"
#include "fmt/format.h"

extern "C" {
#include "riscv-disas.h"
Expand Down
2 changes: 1 addition & 1 deletion tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cmake -B $BUILD_DIR -GNinja \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-DCOVERAGE=ON \
-DISA_TESTS_DIR=$ISA_TESTS_DIR \
-DENABLE_TCP=ON \
-DENABLE_TCP=OFF \
-DBUILD_RUNTIME=ON \
-DTEST_EXPORT_JSON_HART_STATE=ON \
-DENABLE_UBENCHMARKS=OFF
Expand Down

0 comments on commit 80af6b8

Please sign in to comment.