diff --git a/starboard/build/config/win/BUILD.gn b/starboard/build/config/win/BUILD.gn index 6082d82e3da5..a126d937904d 100644 --- a/starboard/build/config/win/BUILD.gn +++ b/starboard/build/config/win/BUILD.gn @@ -20,11 +20,13 @@ config("host") { } config("common") { + configs = [] + if (!cobalt_fastbuild) { # Containers cannot use PDBs, so we conditionally disable them. # We want to keep them for non-docker builds as they make compilation # significantly faster. - configs = [ ":no_pdbs" ] + configs += [ ":no_pdbs" ] } cflags_cc = [ "/TP" ] @@ -41,6 +43,9 @@ config("common") { "UNICODE", ] + # Allows compilation against VS 2022. + configs += [ "//build/config/win:visual_studio_version_compat" ] + # msvs_base # OutputDirectory and IntermediateDirectory, maybe CharacterSet include_dirs += [