--- components/power_metrics/BUILD.gn.orig 2023-08-10 01:48:41 UTC +++ components/power_metrics/BUILD.gn @@ -42,7 +42,7 @@ static_library("power_metrics") { ldflags = [ "/DELAYLOAD:setupapi.dll" ] } - if (is_linux || is_chromeos) { + if ((is_linux && !is_bsd) || is_chromeos) { sources += [ "energy_metrics_provider_linux.cc", "energy_metrics_provider_linux.h",