Skip to content

Commit

Permalink
[FORK][FIX] Add dl library when ITT is used
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov committed Mar 9, 2024
1 parent 3ab1dd8 commit b82deef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ if(DNNL_ENABLE_JIT_PROFILING OR DNNL_ENABLE_ITT_TASKS)
endif()
list(APPEND SOURCES ${ITT_PT})
endif()

set_property(GLOBAL APPEND PROPERTY DNNL_SUBDIR_EXTRA_SHARED_LIBS ${CMAKE_DL_LIBS})
endif()
endif()

Expand Down
2 changes: 1 addition & 1 deletion src/common/cpp_compat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace cpp_compat {
// contains a compatibility layer for such C++ features.

// Older than C++17.
#if defined(__cplusplus) && __cplusplus < 201703L || defined(_MSVC_LANG) && _MSVC_LANG < 201703L
#if defined(__cplusplus) && __cplusplus < 201703L && defined(_MSVC_LANG) && _MSVC_LANG < 201703L
inline int uncaught_exceptions() {
return (int)std::uncaught_exception();
}
Expand Down

0 comments on commit b82deef

Please sign in to comment.