Skip to content

Commit

Permalink
fixed the build
Browse files Browse the repository at this point in the history
  • Loading branch information
schmitch authored and ancwrd1 committed Apr 12, 2024
1 parent 4188c23 commit f6b137f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions qpdf-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ const QPDF_SRC: &[&str] = &[
"ResourceFinder.cc",
"SecureRandomDataProvider.cc",
"SF_FlateLzwDecode.cc",
"SparseOHArray.cc",
"qpdf-c.cc",
"qpdfjob-c.cc",
"qpdflogger-c.cc"
Expand Down Expand Up @@ -219,9 +218,9 @@ fn build_cc(name: &str, dir: &str, files: &[&str]) {
fn build_qpdf() {
let root = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());
let cpp_flags: &[&str] = if is_msvc() {
&["/std:c++14", "/EHsc"]
&["/std:c++17", "/EHsc"]
} else {
&["-std=c++14"]
&["-std=c++17"]
};

let mut build = base_build();
Expand Down

0 comments on commit f6b137f

Please sign in to comment.