Minor tweaks. (#507)
This commit is contained in:
parent
332b764cc4
commit
a98d841983
2
Makefile
2
Makefile
|
@ -14,7 +14,7 @@ architecture:=$(shell arch)
|
|||
####
|
||||
# If you want to specify your own target architecture,
|
||||
# then define ARCHFLAGS. Otherwise, we set good default.
|
||||
# E.g., type ' ARCHFLAGS="-march=nehalem" make parse '
|
||||
# E.g., type ' ARCHFLAGS="-march=westmere" make parse '
|
||||
###
|
||||
ifeq ($(architecture),aarch64)
|
||||
ARCHFLAGS ?= -march=armv8-a
|
||||
|
|
|
@ -148,7 +148,9 @@ int main(int argc, char *argv[]) {
|
|||
simdjson::padded_string p = simdjson::get_corpus(filename);
|
||||
auto [doc, error] = simdjson::document::parse(p); // do the parsing
|
||||
if (error) {
|
||||
std::cout << "document::parse not valid" << std::endl;
|
||||
std::cout << "document::parse failed" << std::endl;
|
||||
std::cout << "error code: " << error << std::endl;
|
||||
std::cout << error_message(error) << std::endl;
|
||||
} else {
|
||||
std::cout << "document::parse valid" << std::endl;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue