Minor tweaks. (#507)

This commit is contained in:
Daniel Lemire 2020-02-24 17:13:10 -05:00 committed by GitHub
parent 332b764cc4
commit a98d841983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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;
}