Skip to content

Commit

Permalink
Set Rust target to prevent having to bump msrv
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrobbel committed Dec 9, 2024
1 parent 44f55f1 commit d9260cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/nvtx-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ use std::{
path::{Path, PathBuf},
};

use bindgen::RustTarget;

fn main() {
let mut lib_builder = cc::Build::new();
let mut builder = bindgen::Builder::default();
Expand All @@ -14,6 +16,7 @@ fn main() {
.file(Path::new("c/src/lib.c"));

builder = builder
.rust_target(#[allow(deprecated)] RustTarget::Stable_1_77) // MSRV
.detect_include_paths(true)
.clang_arg("-I")
.clang_arg("vendor/nvtx/c/include")
Expand Down

0 comments on commit d9260cf

Please sign in to comment.