Skip to content

Commit

Permalink
gix mac compilation
Browse files Browse the repository at this point in the history
Signed-off-by: victoryang00 <[email protected]>
  • Loading branch information
victoryang00 committed Feb 13, 2024
1 parent ff2f6ee commit 73abd9f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: sudo xcode-select -s /Applications/Xcode_15.1.app/Contents/Developer

- name: Install Dependency
run: brew install cxxopts fmt llvm@14 ninja spdlog
run: brew install cxxopts fmt llvm@14 ninja spdlog openblas

- name: Checkout
run: |
Expand Down
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ add_library(MVVM_export ${SOURCE_FILES} ${UNCOMMON_SHARED_SOURCE})
add_executable(MVVM_restore src/restore.cpp ${UNCOMMON_SHARED_SOURCE})
add_executable(MVVM_checkpoint src/checkpoint.cpp ${UNCOMMON_SHARED_SOURCE})

target_link_libraries(MVVM_export fmt::fmt spdlog::spdlog -lm -ldl -lpthread ${BLAS_LIBRARIES})
target_link_libraries(MVVM_restore fmt::fmt spdlog::spdlog cxxopts::cxxopts -lm -ldl -lpthread ${BLAS_LIBRARIES} MVVM_export vmlib ${WIN_EXTRA_LIBS})
target_link_libraries(MVVM_checkpoint fmt::fmt spdlog::spdlog cxxopts::cxxopts -lm -ldl -lpthread ${BLAS_LIBRARIES} MVVM_export vmlib ${WIN_EXTRA_LIBS})
target_link_libraries(MVVM_export fmt::fmt spdlog::spdlog ${BLAS_LIBRARIES})
target_link_libraries(MVVM_restore fmt::fmt spdlog::spdlog cxxopts::cxxopts ${BLAS_LIBRARIES} MVVM_export vmlib ${WIN_EXTRA_LIBS})
target_link_libraries(MVVM_checkpoint fmt::fmt spdlog::spdlog cxxopts::cxxopts ${BLAS_LIBRARIES} MVVM_export vmlib ${WIN_EXTRA_LIBS})
add_definitions(-DCXXOPTS_NO_RTTI=1)
2 changes: 1 addition & 1 deletion src/checkpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void serialize_to_file(WASMExecEnv *instance) {
wamr->should_snapshot = true;
}
// If we're not all ready
SPDLOG_DEBUG("thread {}, with {} ready out of {} total", instance->handle, wamr->ready, all_count);
SPDLOG_DEBUG("thread {}, with {} ready out of {} total", ((uint64_t)instance->handle), wamr->ready, all_count);
#endif
#if !defined(_WIN32)
if (!wamr->socket_fd_map_.empty() && wamr->should_snapshot) {
Expand Down
2 changes: 1 addition & 1 deletion src/wamr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ void wamr_wait(wasm_exec_env_t exec_env) {
SPDLOG_DEBUG("finish child restore");
wakeup.acquire();
#if WASM_ENABLE_LIB_PTHREAD != 0
SPDLOG_DEBUG("go child!! {}", exec_env->handle);
SPDLOG_DEBUG("go child!! {}", ((uint64_t)exec_env->handle));
wamr->replay_sync_ops(false, exec_env);
SPDLOG_DEBUG("finish syncing");
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/wamr_export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void insert_sock_recv_from_data(uint32_t sock, uint8 *ri_data, uint32 ri_data_le
recvFromData.src_addr.ip.ip6[7] = src_addr->addr.ip6.addr.h3;
recvFromData.src_addr.port = src_addr->addr.ip6.port;
}
SPDLOG_ERROR("insert_sock_recv_from_data ", sock, " ", ((struct mvvm_op_data *)ri_data)->op);
SPDLOG_ERROR("insert_sock_recv_from_data {} {}", sock, ((int)((struct mvvm_op_data *)ri_data)->op));
if (((struct mvvm_op_data *)ri_data)->op == MVVM_SOCK_FIN) {
wamr->socket_fd_map_[sock].is_collection = false;
return;
Expand Down

0 comments on commit 73abd9f

Please sign in to comment.