mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
fix to rust instructions
This commit is contained in:
@@ -8,7 +8,7 @@ CPMAddPackage(
|
||||
|
||||
option(SIMDJSON_USE_RUST "Build the static_reflect benchmark" OFF)
|
||||
|
||||
if(SIMDJSON_USER_RUST)
|
||||
if(SIMDJSON_USE_RUST)
|
||||
if(NOT WIN32)
|
||||
# We want the check whether Rust is available before trying to build a crate.
|
||||
CPMAddPackage(
|
||||
@@ -39,9 +39,9 @@ if(SIMDJSON_USER_RUST)
|
||||
message(STATUS "curl https://sh.rustup.rs -sSf | sh")
|
||||
endif()
|
||||
endif()
|
||||
else(SIMDJSON_USER_RUST)
|
||||
else(SIMDJSON_USE_RUST)
|
||||
message(STATUS "We will not benchmark serde-benchmark." )
|
||||
endif(SIMDJSON_USER_RUST)
|
||||
endif(SIMDJSON_USE_RUST)
|
||||
|
||||
# Add the benchmark executable targets
|
||||
add_subdirectory(twitter_benchmark)
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ Importantly, we build the experimental LLVM compiler based on the current state
|
||||
```bash
|
||||
CXX=clang++ cmake -B buildreflect -D SIMDJSON_STATIC_REFLECTION=ON -DSIMDJSON_DEVELOPER_MODE=ON
|
||||
```
|
||||
This only needs to be done once.
|
||||
This only needs to be done once. To build the Rust code, add `-D SIMDJSON_USE_RUST=ON`.
|
||||
|
||||
5. Build the code...
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user