From 6b7011a953c8b3a8622971e39ffc3df95380fc83 Mon Sep 17 00:00:00 2001 From: elrafoon Date: Thu, 19 Dec 2024 01:56:30 +0100 Subject: [PATCH] fix: empty define when LVGL_CFLAGS variable is not passed (#177) Co-authored-by: Oleksandr Babak --- lvgl-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lvgl-sys/build.rs b/lvgl-sys/build.rs index 3a8c4c5..244a4ee 100644 --- a/lvgl-sys/build.rs +++ b/lvgl-sys/build.rs @@ -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());