Skip to content

Commit

Permalink
Fix win&linux
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnycase committed Nov 14, 2024
1 parent 78dffe6 commit 16d0cd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions ntt/cmake/ntt_module.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ if (MSVC)
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
set_target_properties(nncase_ntt_module PROPERTIES LINK_FLAGS /SUBSYSTEM:CONSOLE)
target_link_options(nncase_ntt_module PRIVATE /NODEFAULTLIB)
target_link_libraries(nncase_ntt_module PRIVATE libvcruntime msvcrt ucrt "libcpmt$<$<CONFIG:Debug>:d>")
target_link_libraries(nncase_ntt_module PRIVATE "libvcruntime$<$<CONFIG:Debug>:d>"
"msvcrt$<$<CONFIG:Debug>:d>"
"ucrt$<$<CONFIG:Debug>:d>"
"libcpmt$<$<CONFIG:Debug>:d>")
elseif(APPLE)
target_link_options(nncase_ntt_module PRIVATE -ld_classic -lc)
else()
target_link_options(nncase_ntt_module PRIVATE -static)
endif()
2 changes: 1 addition & 1 deletion ntt/include/nncase/ntt/runtime/cpu_runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ template <> struct program_id_getter<2> {
};
} // namespace nncase::ntt

extern "C" void
extern "C" NTT_RUNTIME_API void
block_entry(const nncase::ntt::runtime::cpu_block_entry_params_t &params);
using block_entry_t = decltype(block_entry) *;

0 comments on commit 16d0cd9

Please sign in to comment.