File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,17 @@ endif()
49
49
# avoid an unwanted dependency on libstdc++.so.
50
50
add_definitions (-U_GLIBCXX_ASSERTIONS )
51
51
52
- add_flang_library ( FortranDecimal INSTALL_WITH_TOOLCHAIN
52
+ set ( sources
53
53
binary-to-decimal.cpp
54
54
decimal-to-binary.cpp
55
55
)
56
56
57
+ include (AddFlangOffloadRuntime )
58
+ enable_cuda_compilation ("${sources} " )
59
+ enable_omp_offload_compilation ("${sources} " )
60
+
61
+ add_flang_library (FortranDecimal INSTALL_WITH_TOOLCHAIN ${sources} )
62
+
57
63
if (DEFINED MSVC )
58
64
set (CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded )
59
65
add_flang_library (FortranDecimal.static INSTALL_WITH_TOOLCHAIN
@@ -77,4 +83,4 @@ if (DEFINED MSVC)
77
83
)
78
84
add_dependencies (FortranDecimal FortranDecimal.static FortranDecimal.dynamic
79
85
FortranDecimal.static_dbg FortranDecimal.dynamic_dbg )
80
- endif ()
86
+ endif ()
Original file line number Diff line number Diff line change 30
30
#include < limits>
31
31
#include < type_traits>
32
32
33
+ // Some environments, viz. glibc 2.17, allow the macro HUGE
34
+ // to leak out of <math.h>.
35
+ #undef HUGE
36
+
33
37
namespace Fortran ::decimal {
34
38
35
39
static constexpr std::uint64_t TenToThe (int power) {
You can’t perform that action at this time.
0 commit comments