SERVER-104169: Enable the custom windows cc toolchain. (#35619)

GitOrigin-RevId: 3bfb0024553ebd4befea39693009193d155f443f
This commit is contained in:
patricearruda84 2025-05-01 12:16:22 -04:00 committed by MongoDB Bot
parent b6c8022a3c
commit ea3c4ea980
2 changed files with 5 additions and 5 deletions

View File

@ -70,11 +70,10 @@ def _setup_local_config_platform(ctx):
constraints_str += ',\n "@//bazel/platforms:%s"' % (distro)
result = {"DISTRO": distro}
exec_props = ""
#elif os == "windows":
#constraints_str += ',\n "@//bazel/platforms:use_mongo_windows_toolchain_config"'
#result = {"USE_NATIVE_TOOLCHAIN": "1"}
#exec_props = ""
elif os == "windows":
constraints_str += ',\n "@//bazel/platforms:use_mongo_windows_toolchain_config"'
result = {"USE_NATIVE_TOOLCHAIN": "1"}
exec_props = ""
else:
result = {"USE_NATIVE_TOOLCHAIN": "1"}
exec_props = ""

View File

@ -36,6 +36,7 @@ mongo_windows_cc_toolchain_config(
"strip": "wrapper/bin/msvc_nop.bat",
},
toolchain_identifier = "msvc_x64",
supports_parse_showincludes = True,
)
cc_toolchain(