Skip to content

Commit 76da659

Browse files
committed
Fixing amalgamate under ARM
1 parent c2eea8a commit 76da659

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FROM gcc:8.3
33
COPY . /usr/src/
44
WORKDIR /usr/src/
55
RUN make clean
6+
RUN make amalgamate
67
RUN make
78
RUN make test
89
RUN make parsingcompetition

amalgamation.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ cat <<< '
114114
#include "simdjson.h"
115115
#include "simdjson.cpp"
116116
int main(int argc, char *argv[]) {
117+
if(argc < 2) {
118+
std::cerr << "Please specify a filename " << std::endl;
119+
}
117120
const char * filename = argv[1];
118121
simdjson::padded_string p = simdjson::get_corpus(filename);
119122
simdjson::ParsedJson pj = simdjson::build_parsed_json(p); // do the parsing

include/simdjson/stage1_find_marks_flatten_haswell.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#include "simdjson/common_defs.h"
1010
#include "simdjson/portability.h"
1111

12+
#ifdef IS_X86_64
13+
1214
TARGET_HASWELL
1315
namespace simdjson {
1416
namespace haswell {
@@ -82,5 +84,5 @@ really_inline void flatten_bits(uint32_t *base_ptr, uint32_t &base,
8284
} // namespace haswell
8385
} // namespace simdjson
8486
UNTARGET_REGION
85-
87+
#endif // IS_X86_64
8688
#endif // SIMDJSON_STAGE1_FIND_MARKS_FLATTEN_H

0 commit comments

Comments
 (0)