We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ab1dd8 commit b82deefCopy full SHA for b82deef
src/common/CMakeLists.txt
@@ -40,6 +40,8 @@ if(DNNL_ENABLE_JIT_PROFILING OR DNNL_ENABLE_ITT_TASKS)
40
endif()
41
list(APPEND SOURCES ${ITT_PT})
42
43
+
44
+ set_property(GLOBAL APPEND PROPERTY DNNL_SUBDIR_EXTRA_SHARED_LIBS ${CMAKE_DL_LIBS})
45
46
47
src/common/cpp_compat.hpp
@@ -30,7 +30,7 @@ namespace cpp_compat {
30
// contains a compatibility layer for such C++ features.
31
32
// Older than C++17.
33
-#if defined(__cplusplus) && __cplusplus < 201703L || defined(_MSVC_LANG) && _MSVC_LANG < 201703L
+#if defined(__cplusplus) && __cplusplus < 201703L && defined(_MSVC_LANG) && _MSVC_LANG < 201703L
34
inline int uncaught_exceptions() {
35
return (int)std::uncaught_exception();
36
}
0 commit comments