Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9aef699 authored by Katherine Lai's avatar Katherine Lai
Browse files

floss: Rerun topshim bindgen if underlying C++ code changes

Bug: 221310414
Tag: #floss
Test: emerge-dedede floss
Change-Id: Ic70a987b1d6f2cfb47f74516fa16c8059d79efd5
parent 1b685804
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -29,6 +29,11 @@ fn main() {
    let bt_searches =
        paths.iter().map(|tail| format!("-I{}{}", search_root, tail)).collect::<Vec<String>>();

    // Also re-run the build if anything in the C++ build changes
    for path in bt_searches.iter() {
        println!("cargo:rerun-if-changed={}", path);
    }

    // "-x" and "c++" must be separate due to a bug
    let clang_args: Vec<&str> = vec!["-x", "c++", "-std=c++17"];