Skip to content

Commit f9bed3f

Browse files
authored
Merge pull request #309 from fastfloat/benchvs
supporting benchmarks under Windows
2 parents 1bf7010 + c0affad commit f9bed3f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/vs17-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v4
2020
- name: configure
2121
run: |
22-
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DFASTFLOAT_TEST=ON -DCMAKE_INSTALL_PREFIX:PATH=destination
22+
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DFASTFLOAT_BENCHMARKS=ON -DFASTFLOAT_TEST=ON -DCMAKE_INSTALL_PREFIX:PATH=destination
2323
- name: build
2424
run: |
2525
cmake --build build --verbose --config ${{matrix.cfg}} --parallel

.github/workflows/vs17-clang-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v4
2020
- name: Configure
2121
run: |
22-
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -T ClangCL -DFASTFLOAT_TEST=ON
22+
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DFASTFLOAT_BENCHMARKS=ON -T ClangCL -DFASTFLOAT_TEST=ON
2323
- name: Build
2424
run: cmake --build build --config ${{matrix.cfg}} --parallel --verbose
2525
- name: Run basic tests

benchmarks/benchmark.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#if defined(__linux__) || (__APPLE__ && __aarch64__)
22
#define USING_COUNTERS
3-
#include "event_counter.h"
43
#endif
4+
#include "event_counter.h"
55
#include <algorithm>
66
#include "fast_float/fast_float.h"
77
#include <chrono>

0 commit comments

Comments
 (0)