mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
Enable numberparsingcheck and stringparsingcheck on MSVC
This commit is contained in:
@@ -42,12 +42,10 @@ include(${PROJECT_SOURCE_DIR}/tests/add_cpp_test.cmake)
|
||||
#
|
||||
# These tests explicitly do #include "simdjson.cpp" so they can override stuff
|
||||
#
|
||||
if (NOT MSVC) # Can't get simdjson-source to compile on Windows for some reason.
|
||||
add_cpp_test(numberparsingcheck LABELS acceptance per_implementation)
|
||||
target_link_libraries(numberparsingcheck simdjson-include-source)
|
||||
add_cpp_test(stringparsingcheck LABELS acceptance per_implementation)
|
||||
target_link_libraries(stringparsingcheck simdjson-include-source)
|
||||
endif()
|
||||
add_cpp_test(numberparsingcheck LABELS acceptance per_implementation)
|
||||
target_link_libraries(numberparsingcheck simdjson-include-source simdjson-windows-headers)
|
||||
add_cpp_test(stringparsingcheck LABELS acceptance per_implementation)
|
||||
target_link_libraries(stringparsingcheck simdjson-include-source simdjson-windows-headers)
|
||||
|
||||
# All remaining tests link with simdjson proper
|
||||
link_libraries(simdjson)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include <cstring>
|
||||
#include <dirent.h>
|
||||
#include <inttypes.h>
|
||||
#include <math.h>
|
||||
#include <stdbool.h>
|
||||
@@ -10,6 +9,7 @@
|
||||
#define JSON_TEST_NUMBERS
|
||||
#endif
|
||||
|
||||
#include "dirent_portable.h"
|
||||
#include "simdjson.h"
|
||||
|
||||
// ulp distance
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include <cassert>
|
||||
#include <climits>
|
||||
#include <cstring>
|
||||
#include <dirent.h>
|
||||
#include <inttypes.h>
|
||||
#include <iostream>
|
||||
#include <math.h>
|
||||
@@ -13,6 +12,7 @@
|
||||
#define JSON_TEST_STRINGS
|
||||
#endif
|
||||
|
||||
#include "dirent_portable.h"
|
||||
#include "simdjson.h"
|
||||
|
||||
char *fullpath;
|
||||
|
||||
Reference in New Issue
Block a user