From 25f6c529e06b39c2ef77a92238c052ac8ee4cbef Mon Sep 17 00:00:00 2001 From: tangxifan Date: Thu, 25 Aug 2022 09:58:43 -0700 Subject: [PATCH] [engine] fixed syntax errors when using clang --- libs/libini/CMakeLists.txt | 1 + openfpga/src/mux_lib/mux_library_builder.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/libini/CMakeLists.txt b/libs/libini/CMakeLists.txt index b2cca5ba7..28fdad3b3 100644 --- a/libs/libini/CMakeLists.txt +++ b/libs/libini/CMakeLists.txt @@ -8,6 +8,7 @@ files_to_dirs(LIB_HEADERS LIB_INCLUDE_DIRS) #Create the library add_library(libini STATIC ${LIB_HEADERS}) +target_link_libraries(libini) target_include_directories(libini PUBLIC ${LIB_INCLUDE_DIRS}) set_target_properties(libini PROPERTIES PREFIX "" LINKER_LANGUAGE CXX) diff --git a/openfpga/src/mux_lib/mux_library_builder.cpp b/openfpga/src/mux_lib/mux_library_builder.cpp index dca8823b0..5d46990eb 100644 --- a/openfpga/src/mux_lib/mux_library_builder.cpp +++ b/openfpga/src/mux_lib/mux_library_builder.cpp @@ -58,7 +58,7 @@ void build_routing_arch_mux_library(const RRGraphView& rr_graph, VTR_LOG_ERROR("Unable to find the circuit model for rr_switch '%s'!\n", rr_graph.rr_switch_inf(driver_switches[0]).name); VTR_LOG("Node type: %s\n", rr_graph.node_type_string(node)); - VTR_LOG("Node coordinate: %s\n", rr_graph.node_coordinate_to_string(node)); + VTR_LOG("Node coordinate: %s\n", rr_graph.node_coordinate_to_string(node).c_str()); exit(1); }