Skip to content

Commit a1abe35

Browse files
authored
minor fixes (#6)
* minor fixes * scope
1 parent ec7c3ee commit a1abe35

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
name: 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

115
jobs:
126
ubuntu-build:

benchmarks/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ target_link_libraries(benchmark PUBLIC grisu2)
3434
target_link_libraries(benchmark PUBLIC double-conversion)
3535
target_link_libraries(benchmark PUBLIC ryu::ryu)
3636
target_link_libraries(benchmark PUBLIC teju)
37+
if(teju_has_float128)
38+
target_link_libraries(benchmark PUBLIC teju_boost_multiprecision)
39+
endif()
3740
target_link_libraries(benchmark PUBLIC dragonbox::dragonbox_to_chars)
3841

3942
target_include_directories(benchmark PUBLIC ${grisu-exact_SOURCE_DIR})

benchmarks/random_generators.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
struct float_number_generator {
1010
virtual double new_float() = 0;
1111
virtual std::string describe() = 0;
12+
virtual ~float_number_generator() = default;
1213
};
1314

1415
struct uniform_generator : float_number_generator {

dependencies/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@ FetchContent_Declare(
4040
GIT_SHALLOW TRUE
4141
)
4242
FetchContent_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]")
4552
FetchContent_Declare(
4653
ryu

0 commit comments

Comments
 (0)