diff --git a/utils/gn/build/BUILD.gn b/utils/gn/build/BUILD.gn index 488e248da3a..31d3ac5e5fc 100644 --- a/utils/gn/build/BUILD.gn +++ b/utils/gn/build/BUILD.gn @@ -188,17 +188,11 @@ config("compiler_defaults") { "-Werror=date-time", ] if (current_os == "win") { - cflags += [ - "-fmsc-version=1916", - "/X", - ] - } - if (current_os == "win" && use_lld) { - cflags += [ "/Brepro" ] - ldflags += [ - "/Brepro", - "/lldignoreenv", - ] + cflags += [ "-fmsc-version=1916" ] + if (use_lld) { + cflags += [ "/Brepro" ] + ldflags += [ "/Brepro" ] + } } if (use_relative_paths_in_debug_info) { cflags += [