--- components/power_metrics/BUILD.gn.orig 2023-10-19 19:58:19 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",