2024-10-19 12:54:49 -04:00
|
|
|
################################
|
|
|
|
|
# Common Flags
|
|
|
|
|
################################
|
|
|
|
|
# Warning level
|
2025-07-22 13:26:20 -07:00
|
|
|
common:windows --repo_env="BAZEL_COPTS=/W3:/WX"
|
2024-10-19 12:54:49 -04:00
|
|
|
|
|
|
|
|
# C++ options
|
2025-07-22 13:26:20 -07:00
|
|
|
common:windows --repo_env="BAZEL_CXXOPTS=/EHsc:/FS:/Zc%:inline:/wd4244:/wd4267:/wd4146:/wd4996:/Zc%:throwingNew:/D_CRT_SECURE_NO_WARNINGS:/std%:c++20:/permissive-:/utf-8:/bigobj:/Zc%:__cplusplus:/Zc%:preprocessor:/wd5105"
|
2024-10-19 12:54:49 -04:00
|
|
|
|
2025-07-22 13:26:20 -07:00
|
|
|
# Remove "/D_WIN32_WINNT=0x0601"
|
|
|
|
|
common:windows --repo_env="BAZEL_WIN32_WINNT="
|
2024-10-19 12:54:49 -04:00
|
|
|
|
2025-07-22 13:26:20 -07:00
|
|
|
# C Only
|
|
|
|
|
common:windows --repo_env="BAZEL_CONLYOPTS=/FS:/Zc%:inline:/D_CRT_SECURE_NO_WARNINGS"
|
2024-10-19 12:54:49 -04:00
|
|
|
|
|
|
|
|
################################
|
|
|
|
|
# Standard Windows Flags
|
|
|
|
|
################################
|
2025-07-22 13:26:20 -07:00
|
|
|
build:windows --repo_env="BAZEL_LINKOPTS=/DEPENDENTLOADFLAG%:0x1100"
|
2024-10-19 12:54:49 -04:00
|
|
|
|
|
|
|
|
################################
|
|
|
|
|
# ARM Windows Flags
|
|
|
|
|
################################
|
2026-01-12 14:30:31 -08:00
|
|
|
build:windows_arm --platforms="@allwpilib//shared/bazel:windows_arm64" --platform_suffix=winarm64
|
2024-10-19 12:54:49 -04:00
|
|
|
|
2025-07-22 13:26:20 -07:00
|
|
|
# Ignore duplicate inline statment in tools
|
|
|
|
|
build:windows --host_copt=/wd4141
|
|
|
|
|
# Ignore utf8 warning in tools
|
|
|
|
|
build:windows --host_copt=/wd4715
|
2025-07-30 20:07:06 -07:00
|
|
|
|
|
|
|
|
# Disable the C++17 feature in the windows compiler
|
|
|
|
|
build:windows --features=-default_cpp_std --host_features=-default_cpp_std
|
2026-01-12 14:30:31 -08:00
|
|
|
build:windows --host_platform=//shared/bazel:windows_host
|