File tree 3 files changed +11
-1
lines changed
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ add_definitions(${LLVM_DEFINITIONS})
67
67
list (APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR} " )
68
68
69
69
# Get boost
70
- find_package (Boost REQUIRED)
70
+ find_package (Boost 1.70 REQUIRED)
71
71
include_directories (${Boost_INCLUDE_DIR} )
72
72
73
73
add_definitions (-DBOOST_NO_RTTI -DBOOST_EXCEPTION_DISABLE -DBOOST_NO_EXCEPTIONS)
Original file line number Diff line number Diff line change @@ -338,6 +338,8 @@ struct simplify_type<const gazer::ExprRef<T>> {
338
338
339
339
} // end namespace llvm
340
340
341
+ #if BOOST_VERSION < 107400
342
+ // Boost 1.74 introduced std::hash specialization for smart pointers, but we officially support 1.70.
341
343
namespace std
342
344
{
343
345
@@ -358,5 +360,6 @@ struct hash<gazer::ExprRef<T>>
358
360
};
359
361
360
362
} // end namespace std
363
+ #endif
361
364
362
365
#endif
Original file line number Diff line number Diff line change @@ -34,6 +34,13 @@ namespace boost
34
34
#endif
35
35
std::terminate ();
36
36
}
37
+
38
+ #if BOOST_VERSION >= 107300
39
+ void throw_exception (std::exception const &e, boost::source_location const &)
40
+ {
41
+ boost::throw_exception (e);
42
+ }
43
+ #endif
37
44
} // end namespace boost
38
45
#endif
39
46
You can’t perform that action at this time.
0 commit comments