Make sure that skia_use_system_libjpeg_turbo is enabled if SKIA_USE_SYSTEM_LIBARARIES env variable is set
@@ -295,7 +295,10 @@ impl FinalBuildConfiguration {
cflags.extend(jpeg_sys_cflags.iter().map(|x| -> &str { x.as_ref() }));
args.push(("skia_use_system_libjpeg_turbo", yes()));
} else {
- args.push(("skia_use_system_libjpeg_turbo", no()));
+ args.push((
+ "skia_use_system_libjpeg_turbo",
+ yes_if(use_system_libraries),
+ ));
}
if let Some(opt_level) = &build.opt_level {
