Skip to content

Commit 60ee5fc

Browse files
committed
Enable numberparsingcheck and stringparsingcheck on MSVC
1 parent fa4ce6a commit 60ee5fc

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

tests/CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,10 @@ include(${PROJECT_SOURCE_DIR}/tests/add_cpp_test.cmake)
4242
#
4343
# These tests explicitly do #include "simdjson.cpp" so they can override stuff
4444
#
45-
if (NOT MSVC) # Can't get simdjson-source to compile on Windows for some reason.
46-
add_cpp_test(numberparsingcheck LABELS acceptance per_implementation)
47-
target_link_libraries(numberparsingcheck simdjson-include-source)
48-
add_cpp_test(stringparsingcheck LABELS acceptance per_implementation)
49-
target_link_libraries(stringparsingcheck simdjson-include-source)
50-
endif()
45+
add_cpp_test(numberparsingcheck LABELS acceptance per_implementation)
46+
target_link_libraries(numberparsingcheck simdjson-include-source simdjson-windows-headers)
47+
add_cpp_test(stringparsingcheck LABELS acceptance per_implementation)
48+
target_link_libraries(stringparsingcheck simdjson-include-source simdjson-windows-headers)
5149

5250
# All remaining tests link with simdjson proper
5351
link_libraries(simdjson)

tests/numberparsingcheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include <cstring>
2-
#include <dirent.h>
32
#include <inttypes.h>
43
#include <math.h>
54
#include <stdbool.h>
@@ -10,6 +9,7 @@
109
#define JSON_TEST_NUMBERS
1110
#endif
1211

12+
#include "dirent_portable.h"
1313
#include "simdjson.h"
1414

1515
// ulp distance

tests/stringparsingcheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include <cassert>
22
#include <climits>
33
#include <cstring>
4-
#include <dirent.h>
54
#include <inttypes.h>
65
#include <iostream>
76
#include <math.h>
@@ -13,6 +12,7 @@
1312
#define JSON_TEST_STRINGS
1413
#endif
1514

15+
#include "dirent_portable.h"
1616
#include "simdjson.h"
1717

1818
char *fullpath;

0 commit comments

Comments
 (0)