--- build/config/c++/modules.gni.orig 2026-05-27 02:46:20 UTC +++ build/config/c++/modules.gni @@ -27,7 +27,12 @@ if (is_chromeos) { # Currently, these generate the same sysroot for all architectures. This is # not inherently the case. If we start getting errors on one architecture # but not the other, we will revert back to one modulemap per cpu. - module_platform = current_os + if (is_bsd) { + # FreeBSD uses the Linux module platform (no freebsd-specific build/modules/). + module_platform = "linux" + } else { + module_platform = current_os + } } if (is_apple && use_autogenerated_modules) {