Skip to content

Commit

Permalink
Remove compilation of all recursive C files in config dir
Browse files Browse the repository at this point in the history
Add missing rerun-if-env-changed for config path env var
  • Loading branch information
madwizard-thomas committed Nov 13, 2023
1 parent a18027c commit 71f3518
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lvgl-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn main() {

#[cfg(feature = "drivers")]
let drivers = vendor.join("lv_drivers");

println!("cargo:rerun-if-env-changed={}", CONFIG_NAME);
let lv_config_dir = {
let conf_path = env::var(CONFIG_NAME)
.map(PathBuf::from)
Expand Down Expand Up @@ -134,7 +134,6 @@ fn main() {
add_c_files(&mut cfg, p)
}
add_c_files(&mut cfg, &lvgl_src);
add_c_files(&mut cfg, &lv_config_dir);
add_c_files(&mut cfg, &shims_dir);
#[cfg(feature = "drivers")]
add_c_files(&mut cfg, &drivers);
Expand Down

0 comments on commit 71f3518

Please sign in to comment.