Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
SunDoge committed Aug 26, 2023
1 parent d7c73cd commit 0910bad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ use simdjson_rust::prelude::*;
use simdjson_rust::{dom, ondemand};

fn main() -> simdjson_rust::Result<()> {
let ps = make_padded_string("[0,1,2,3]");
let ps = "[0,1,2,3]".to_padded_string();

// ondemand api.
{
Expand Down
4 changes: 3 additions & 1 deletion simdjson-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ fn main() {
.flag_if_supported("/std:c++20") // error C7555: use of designated initializers requires at least '/std:c++20'
.flag_if_supported("-pthread")
.flag_if_supported("-O3")
.flag("-DNDEBUG")
.flag_if_supported("/O2")
.flag_if_supported("-DNDEBUG")
.flag_if_supported("/DNDEBUG")
.include("simdjson/singleheader")
.file("src/simdjson_c_api.cpp")
.file("simdjson/singleheader/simdjson.cpp")
Expand Down

0 comments on commit 0910bad

Please sign in to comment.