-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0446706
commit 56fb5a8
Showing
12 changed files
with
48,808 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
linelength=120 | ||
filter=-build/c++11 | ||
filter=-build/c++11,-build/include_subdir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
set_property(DIRECTORY PROPERTY EXCLUDE_FROM_ALL 1) | ||
|
||
# add_contrib cmake_folder[ base_folder1[, ...base_folderN]] | ||
# or add_contrib base_folder | ||
function(add_contrib cmake_folder) | ||
if (ARGN) | ||
set(base_folders ${ARGN}) | ||
else() | ||
set(base_folders ${cmake_folder}) | ||
endif() | ||
|
||
foreach (base_folder ${base_folders}) | ||
if (NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${base_folder}") | ||
message(FATAL_ERROR "No such base folder '${base_folder}' (for '${cmake_folder}' cmake folder). Typo in the base folder name?") | ||
endif() | ||
|
||
file(GLOB contrib_files "${base_folder}/*") | ||
if (NOT contrib_files) | ||
message(FATAL_ERROR "submodule ${base_folder} is missing or empty.") | ||
endif() | ||
endforeach() | ||
|
||
message(STATUS "Adding contrib module ${base_folders} (configuring with ${cmake_folder})") | ||
add_subdirectory (${cmake_folder}) | ||
endfunction() | ||
|
||
add_contrib(simdjson) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
add_library(_simdjson ${CMAKE_CURRENT_SOURCE_DIR}/simdjson.cpp) | ||
target_include_directories(_simdjson SYSTEM PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/") | ||
|
||
# simdjson is using its own CPU dispatching and get confused if we enable AVX/AVX2 flags. | ||
if(ARCH_AMD64) | ||
target_compile_options(_simdjson PRIVATE -mno-avx -mno-avx2) | ||
endif() | ||
|
||
add_library(op_contrib::simdjson ALIAS _simdjson) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
smidjson v3.2.1: https://github.com/simdjson/simdjson/releases/tag/v3.2.1 |
Oops, something went wrong.