Skip to content

Commit

Permalink
chore: remove cpp_build
Browse files Browse the repository at this point in the history
Reduces recompilation times. Can be later readded if needed.
  • Loading branch information
maximmaxim345 committed Mar 14, 2024
1 parent 1991f46 commit 122b1a7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 67 deletions.
58 changes: 0 additions & 58 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions crates/occara/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ edition = "2021"

[dependencies]
autocxx = "0.26.0"
cpp = "0.5.9"
cxx = "1.0.117"
walkdir = "2.4.0"

[build-dependencies]
opencascade-sys = { path = "../opencascade-sys" }
cpp_build = "0.5.9"
cxx-build = { version = "1.0.118", features = ["parallel"] }
walkdir = "2.4.0"
autocxx-build = "0.26.0"
Expand Down
7 changes: 0 additions & 7 deletions crates/occara/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ fn main() -> miette::Result<()> {
.compile("occara-autocxx-bridge");
println!("cargo:rerun-if-changed=src/ffi.rs");

// Build inline c++ code using the cpp_build crate
cpp_build::Config::new()
.flag_if_supported("-std=c++20")
.include(include_dir)
.include("include")
.build("src/lib.rs");
println!("cargo:rerun-if-changed=src/lib.rs");
opencascade_sys::link_opencascade();
Ok(())
}

0 comments on commit 122b1a7

Please sign in to comment.