Skip to content

Commit 91d3da7

Browse files
committed
Ensure CI builds all tested implementations
1 parent 7e188c6 commit 91d3da7

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ commands:
9696
- run: |
9797
cd build &&
9898
tools/json2json -h &&
99-
ctest $CTEST_FLAGS -L acceptance -LE per_implementation &&
99+
ctest $CTEST_FLAGS -DSIMDJSON_IMPLEMENTATION="haswell;westmere;fallback" -L acceptance -LE per_implementation &&
100100
SIMDJSON_FORCE_IMPLEMENTATION=haswell ctest $CTEST_FLAGS -L per_implementation -E checkperf &&
101101
SIMDJSON_FORCE_IMPLEMENTATION=westmere ctest $CTEST_FLAGS -L per_implementation -E checkperf &&
102102
SIMDJSON_FORCE_IMPLEMENTATION=fallback ctest $CTEST_FLAGS -L per_implementation -E checkperf &&

.drone.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ steps:
5050
CC: gcc
5151
CXX: g++
5252
BUILD_FLAGS: -- -j
53-
CMAKE_FLAGS: -DSIMDJSON_BUILD_STATIC=ON
53+
CMAKE_FLAGS: -DSIMDJSON_BUILD_STATIC=ON -DSIMDJSON_IMPLEMENTATION=haswell;westmere;fallback
5454
CTEST_FLAGS: -j4 --output-on-failure -E checkperf
5555
commands:
5656
- apt-get update -qq
@@ -76,7 +76,7 @@ steps:
7676
CC: clang-6.0
7777
CXX: clang++-6.0
7878
BUILD_FLAGS: -- -j
79-
CMAKE_FLAGS: -DSIMDJSON_BUILD_STATIC=ON
79+
CMAKE_FLAGS: -DSIMDJSON_BUILD_STATIC=ON -DSIMDJSON_IMPLEMENTATION=haswell;westmere;fallback
8080
CTEST_FLAGS: -j4 --output-on-failure -E checkperf
8181
commands:
8282
- mkdir build
@@ -140,7 +140,7 @@ steps:
140140
CC: gcc
141141
CXX: g++
142142
BUILD_FLAGS: -- -j
143-
CMAKE_FLAGS: -DSIMDJSON_BUILD_STATIC=ON
143+
CMAKE_FLAGS: -DSIMDJSON_BUILD_STATIC=ON -DSIMDJSON_IMPLEMENTATION=haswell;westmere;fallback
144144
CTEST_FLAGS: -j4 --output-on-failure -E checkperf
145145
commands:
146146
- apt-get update -qq
@@ -165,7 +165,7 @@ steps:
165165
environment:
166166
CC: clang-9
167167
CXX: clang++-9
168-
CMAKE_FLAGS: -DSIMDJSON_SANITIZE=ON
168+
CMAKE_FLAGS: -DSIMDJSON_SANITIZE=ON -DSIMDJSON_IMPLEMENTATION=haswell;westmere;fallback
169169
BUILD_FLAGS: -- -j
170170
CTEST_FLAGS: -j4 --output-on-failure -E checkperf
171171
commands:
@@ -189,7 +189,7 @@ steps:
189189
CC: gcc
190190
CXX: g++
191191
BUILD_FLAGS: -- -j
192-
CMAKE_FLAGS: -DSIMDJSON_BUILD_STATIC=ON
192+
CMAKE_FLAGS: -DSIMDJSON_BUILD_STATIC=ON -DSIMDJSON_IMPLEMENTATION=arm64;fallback
193193
CTEST_FLAGS: -j4 --output-on-failure -E checkperf
194194
commands:
195195
- apt-get update -qq
@@ -274,7 +274,7 @@ steps:
274274
image: gcc:8
275275
environment:
276276
BUILD_FLAGS: -- -j
277-
CMAKE_FLAGS: -DSIMDJSON_BUILD_STATIC=ON
277+
CMAKE_FLAGS: -DSIMDJSON_BUILD_STATIC=ON -DSIMDJSON_IMPLEMENTATION=arm64;fallback
278278
CTEST_FLAGS: -j4 --output-on-failure -E checkperf
279279
CC: gcc
280280
CXX: g++
@@ -299,7 +299,7 @@ steps:
299299
environment:
300300
CC: clang-6.0
301301
CXX: clang++-6.0
302-
CMAKE_FLAGS: -DSIMDJSON_SANITIZE=ON
302+
CMAKE_FLAGS: -DSIMDJSON_SANITIZE=ON -DSIMDJSON_IMPLEMENTATION=arm64;fallback
303303
BUILD_FLAGS: -- -j
304304
CTEST_FLAGS: -j4 --output-on-failure -E checkperf
305305
commands:

cmake/simdjson-flags.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ if(NOT SIMDJSON_IMPLEMENTATION_FALLBACK)
119119
message(DEPRECATION "SIMDJSON_IMPLEMENTATION_FALLBACK is deprecated. Use SIMDJSON_IMPLEMENTATION=-fallback instead.")
120120
target_compile_definitions(simdjson-internal-flags INTERFACE SIMDJSON_IMPLEMENTATION_FALLBACK=0)
121121
endif()
122-
# e.g. SIMDJSON_IMPLEMENTATION="haswell westmere -fallback"
123-
set(SIMDJSON_IMPLEMENTATION "" CACHE STRING "Implementations to include/exclude: space separated list of architectures (haswell/westmere/arm64/fallback). Prepend with - to force an implementation off (e.g. -haswell). Defaults to compile-time detection.")
122+
# e.g. SIMDJSON_IMPLEMENTATION="haswell;westmere;-fallback"
123+
set(SIMDJSON_IMPLEMENTATION "" CACHE STRING "Implementations to include/exclude: semicolon separated list of architectures (haswell/westmere/arm64/fallback). Prepend with - to force an implementation off. (e.g. -DSIMDJSON_IMPLEMENTATION=\"haswell;-fallback\") Defaults to compile-time detection.")
124124
foreach(implementation ${SIMDJSON_IMPLEMENTATION})
125125
string(TOUPPER ${implementation} implementation_upper)
126126
string(SUBSTRING ${implementation_upper} 0 1 first_char)

0 commit comments

Comments
 (0)