Skip to content

Commit b82deef

Browse files
committed
[FORK][FIX] Add dl library when ITT is used
1 parent 3ab1dd8 commit b82deef

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/common/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ if(DNNL_ENABLE_JIT_PROFILING OR DNNL_ENABLE_ITT_TASKS)
4040
endif()
4141
list(APPEND SOURCES ${ITT_PT})
4242
endif()
43+
44+
set_property(GLOBAL APPEND PROPERTY DNNL_SUBDIR_EXTRA_SHARED_LIBS ${CMAKE_DL_LIBS})
4345
endif()
4446
endif()
4547

src/common/cpp_compat.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace cpp_compat {
3030
// contains a compatibility layer for such C++ features.
3131

3232
// Older than C++17.
33-
#if defined(__cplusplus) && __cplusplus < 201703L || defined(_MSVC_LANG) && _MSVC_LANG < 201703L
33+
#if defined(__cplusplus) && __cplusplus < 201703L && defined(_MSVC_LANG) && _MSVC_LANG < 201703L
3434
inline int uncaught_exceptions() {
3535
return (int)std::uncaught_exception();
3636
}

0 commit comments

Comments
 (0)