Skip to content

Commit

Permalink
fix: empty define when LVGL_CFLAGS variable is not passed (#177)
Browse files Browse the repository at this point in the history
Co-authored-by: Oleksandr Babak <[email protected]>
  • Loading branch information
elrafoon and Ddystopia authored Dec 19, 2024
1 parent 3b3abb3 commit 6b7011a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lvgl-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fn main() {
env::var("LVGL_INCLUDE").unwrap_or("/usr/include,/usr/local/include".to_string());

let cflags_extra = env::var("LVGL_CFLAGS").unwrap_or_default();
let cflags_extra = cflags_extra.split(',');
let cflags_extra = cflags_extra.split(',').filter(|s| !s.is_empty());

#[cfg(feature = "drivers")]
let link_extra = env::var("LVGL_LINK").unwrap_or("SDL2".to_string());
Expand Down

0 comments on commit 6b7011a

Please sign in to comment.