--- components/power_metrics/BUILD.gn.orig 2023-09-13 12:11:42 UTC +++ components/power_metrics/BUILD.gn @@ -41,7 +41,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",