[SERVER-83701] Bring over scons unconditional global flags to bazel Created: 29/Nov/23  Updated: 02/Feb/24

Status: Needs Scheduling
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Daniel Moody Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Build
Participants:

 Description   

There a many flags which are applied globally across the compilations. These flags probably mostly exist in the SCosntruct. These flags should be searched in the SConstructs/SConscripts and if the flag is added under usual circumstances (our v4 toolchain and no specific options), then it should be brought into bazel, probably added in our mongo_* macros. The raw list of flags to investigate is below:
-Woverloaded-virtual
-Wpessimizing-move
-Wno-maybe-uninitialized
-fsized-deallocation
-Werror
-ffp-contract=off
-fasynchronous-unwind-tables
-g2
-Wall
-Wsign-compare
-Wno-unknown-pragmas
-Winvalid-pch
-gdwarf-5
-fno-omit-frame-pointer
-fno-strict-aliasing
-march=armv8.2-a
-mtune=generic
-Wno-unused-local-typedefs
-Wno-unused-function
-Wno-deprecated-declarations
-Wno-unused-const-variable
-Wno-unused-but-set-variable
-Wno-missing-braces
-Wno-psabi
-fstack-protector-strong
-gdwarf64
Wa,-nocompress-debug-sections
-Wimplicit-fallthrough=5
-fPIE
-DSAFEINT_USE_INTRINSICS=0
-DPCRE2_STATIC
-DNDEBUG
-D_XOPEN_SOURCE=700
-D_GNU_SOURCE
-D_FORTIFY_SOURCE=2
-DABSL_FORCE_ALIGNED_ACCESS
-DBOOST_ENABLE_ASSERT_DEBUG_HANDLER
-DBOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF
-DBOOST_LOG_NO_SHORTHAND_NAMES
-DBOOST_LOG_USE_NATIVE_SYSLOG
-DBOOST_LOG_WITHOUT_THREAD_ATTR
-DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
-DBOOST_SYSTEM_NO_DEPRECATED
-DBOOST_THREAD_USES_DATETIME
-DBOOST_THREAD_VERSION=5


Generated at Thu Feb 08 06:52:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.