Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-83702

investigate bazels built in cc_library flags

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Build
    • 2

      While switching to bazel, we are using bazels built in cc_* rules to build things. These rules add many compilation flags which seem like they may be useful or harmful. We need to investigate each one and weigh the pros and cons. We should err on the side of caution and push any investigation that is not short and obvious to a future ticket. We should weigh with service arch on some flags we choose to keep as they can affect C++ features and behaviors. Note these flags were generated with clang. when selecting gcc, bazel uses cc1plus binary with much less flags. The full list to investigate is below:
      -triple aarch64-mongodb-linux
      -emit-obj
      -mrelax-all
      --mrelax-relocations
      -disable-free
      -disable-llvm-verifier
      -discard-value-names
      -mrelocation-model pic
      -pic-level 2
      -fhalf-no-semantic-interposition
      -mframe-pointer=non-leaf
      -fmath-errno
      -fno-rounding-math
      -mconstructor-aliases
      -munwind-tables
      -target-cpu generic
      -target-feature +neon
      -target-abi aapcs
      -fallow-half-arguments-and-returns
      -fno-split-dwarf-inlining
      -debugger-tuning=gdb
      -sys-header-deps
      -Wno-builtin-macro-redefined
      -fdeprecated-macro
      -ferror-limit 19
      -fno-signed-char
      -fgnuc-version=4.2.1
      -fno-implicit-modules
      -fcxx-exceptions
      -fexceptions
      -faddrsig

            Assignee:
            Unassigned Unassigned
            Reporter:
            daniel.moody@mongodb.com Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: