File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ if(DNNL_ENABLE_JIT_PROFILING OR DNNL_ENABLE_ITT_TASKS)
40
40
endif ()
41
41
list (APPEND SOURCES ${ITT_PT} )
42
42
endif ()
43
+
44
+ set_property (GLOBAL APPEND PROPERTY DNNL_SUBDIR_EXTRA_SHARED_LIBS ${CMAKE_DL_LIBS} )
43
45
endif ()
44
46
endif ()
45
47
Original file line number Diff line number Diff line change @@ -29,22 +29,24 @@ namespace cpp_compat {
29
29
// been deprecated in C++17, which triggers deprecations warnings. This file
30
30
// contains a compatibility layer for such C++ features.
31
31
32
- // Older than C++17.
33
- #if defined(__cplusplus) && __cplusplus < 201703L || defined(_MSVC_LANG) && _MSVC_LANG < 201703L
32
+ // Newer than C++17.
33
+ #if defined(__cplusplus) && __cplusplus >= 201703L || defined(_MSVC_LANG) && _MSVC_LANG >= 201703L
34
+
34
35
inline int uncaught_exceptions () {
35
- return ( int ) std::uncaught_exception ();
36
+ return std::uncaught_exceptions ();
36
37
}
37
38
38
39
template <class F , class ... ArgTypes>
39
- using invoke_result = typename std::result_of<F(ArgTypes...)>;
40
+ using invoke_result = std::invoke_result<F, ArgTypes...>;
41
+
40
42
#else
41
43
42
44
inline int uncaught_exceptions () {
43
- return std::uncaught_exceptions ();
45
+ return ( int ) std::uncaught_exception ();
44
46
}
45
47
46
48
template <class F , class ... ArgTypes>
47
- using invoke_result = std::invoke_result<F, ArgTypes...>;
49
+ using invoke_result = typename std::result_of<F( ArgTypes...) >;
48
50
49
51
#endif
50
52
} // namespace cpp_compat
You can’t perform that action at this time.
0 commit comments