File tree Expand file tree Collapse file tree 3 files changed +18
-12
lines changed
Expand file tree Collapse file tree 3 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 99 - uses : actions/checkout@v4
1010 - name : Use cmake
1111 run : |
12- mkdir build &&
13- cd build &&
14- CXXFLAGS=-Werror cmake -DFASTFLOAT_TEST=ON -D FASTFLOAT_BENCHMARKS=ON .. &&
15- cmake --build . &&
16- ctest --output-on-failure
12+ set -xe
13+ cmake -B build \
14+ -DFASTFLOAT_TEST=ON \
15+ -DFASTFLOAT_BENCHMARKS=ON \
16+ -DCMAKE_CXX_FLAGS=' -Werror -Wundef '
17+ cmake --build build --parallel
18+ ( cd build ; ctest --output-on-failure )
1719 - name : Use cmake CXX23
1820 run : |
19- mkdir build20 &&
20- cd build20 &&
21- CXXFLAGS=-Werror cmake -DFASTFLOAT_CONSTEXPR_TESTS=ON -DFASTFLOAT_FIXEDWIDTH_TESTS=ON -DFASTFLOAT_CXX_STANDARD=23 -DFASTFLOAT_TEST=ON .. &&
22- cmake --build . &&
23- ctest --output-on-failure
21+ set -xe
22+ cmake -B build20 \
23+ -DFASTFLOAT_TEST=ON \
24+ -DFASTFLOAT_CONSTEXPR_TESTS=ON \
25+ -DFASTFLOAT_FIXEDWIDTH_TESTS=ON \
26+ -DFASTFLOAT_CXX_STANDARD=23 \
27+ -DCMAKE_CXX_FLAGS=' -Werror -Wundef '
28+ cmake --build build20 --parallel
29+ ( cd build20 ; ctest --output-on-failure )
Original file line number Diff line number Diff line change 1717#include < libgen.h>
1818#endif
1919
20- #if __APPLE__ && __aarch64__
20+ #if (defined( __APPLE__) && __APPLE__) && (defined( __aarch64__) && __aarch64__)
2121#include " apple_arm_events.h"
2222#endif
2323
Original file line number Diff line number Diff line change 99#include < type_traits>
1010#include < system_error>
1111#ifdef __has_include
12- #if __has_include(<stdfloat>) && (__cplusplus > 202002L || _MSVC_LANG > 202002L)
12+ #if __has_include(<stdfloat>) && (__cplusplus > 202002L || (defined( _MSVC_LANG) && (_MSVC_LANG > 202002L)) )
1313#include < stdfloat>
1414#endif
1515#endif
You can’t perform that action at this time.
0 commit comments