File tree Expand file tree Collapse file tree 4 files changed +13
-8
lines changed
Expand file tree Collapse file tree 4 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 11name : Ubuntu 22.04 Sanitized CI (GCC 11)
22
3- on :
4- push :
5- branches :
6- - master
7- pull_request :
8- branches :
9- - master
3+ on : [push, pull_request]
104
115jobs :
126 ubuntu-build :
Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ target_link_libraries(benchmark PUBLIC grisu2)
3434target_link_libraries (benchmark PUBLIC double-conversion)
3535target_link_libraries (benchmark PUBLIC ryu::ryu)
3636target_link_libraries (benchmark PUBLIC teju)
37+ if (teju_has_float128)
38+ target_link_libraries (benchmark PUBLIC teju_boost_multiprecision)
39+ endif ()
3740target_link_libraries (benchmark PUBLIC dragonbox::dragonbox_to_chars)
3841
3942target_include_directories (benchmark PUBLIC ${grisu-exact_SOURCE_DIR})
Original file line number Diff line number Diff line change 99struct float_number_generator {
1010 virtual double new_float () = 0;
1111 virtual std::string describe () = 0;
12+ virtual ~float_number_generator () = default ;
1213};
1314
1415struct uniform_generator : float_number_generator {
Original file line number Diff line number Diff line change @@ -40,7 +40,14 @@ FetchContent_Declare(
4040 GIT_SHALLOW TRUE
4141)
4242FetchContent_MakeAvailable(teju_jagua)
43-
43+ get_property (teju_has_uint128 DIRECTORY ${teju_jagua_SOURCE_DIR} PROPERTY teju_has_uint128)
44+ # When teju_has_float128 is set, then we will need teju_boost_multiprecision
45+ get_property (teju_has_float128 DIRECTORY ${teju_jagua_SOURCE_DIR} PROPERTY teju_has_float128)
46+ if (teju_has_float128)
47+ message (STATUS "support for 128-bit floats detected by teju" )
48+ else ()
49+ message (STATUS "support for 128-bit floats NOT detected by teju" )
50+ endif ()
4451#CPMAddPackage("gh:ulfjack/[email protected] ") 4552FetchContent_Declare(
4653 ryu
You can’t perform that action at this time.
0 commit comments