--- build/config/compiler/BUILD.gn.orig 2026-09-30 02:11:56 UTC +++ build/config/compiler/BUILD.gn @@ -588,7 +588,7 @@ config("compiler") { if (is_clang) { # Flags for diagnostics. cflags += [ "-fcolor-diagnostics" ] - if (!is_wasm) { + if (!is_wasm && !is_bsd) { if (!is_win) { cflags += [ "-fdiagnostics-show-inlining-chain" ] } else { @@ -629,7 +629,7 @@ config("compiler") { # The performance improvement does not seem worth the risk. See # https://crbug.com/484082200 for background and https://crrev.com/c/7593035 # for discussion. - if (!is_wasm) { + if (!is_wasm && !is_bsd) { cflags += [ "-fno-lifetime-dse" ] } @@ -2868,8 +2868,9 @@ config("split_dwarf") { # thinlto requires -gsplit-dwarf in ldflags. if (use_thin_lto && !is_apple) { ldflags = split_dwarf_flags - } else { + } else if (!is_bsd) { # .dwo files are generated when ThinLTO is not used. + # c_additional_outputs requires GN newer than ports devel/gn. c_additional_outputs = [ "{{target_out_dir}}/{{label_name}}/{{source_name_part}}.dwo" ] }