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

Bazel build_mode should allow opt_debug to be set

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Build
    • Fully Compatible
    • ALL

      Currently the opt + debug combo just results in build_mode=dbg getting set. We want to support flagging off of when the user has BOTH opt and dbg set, so in this case opt_debug should be used.

      AKA:

      Currently its

      SCons opt=on, dbg=off -> bazel --//bazel/config:build_mode=opt_on
      SCons opt=off, dbg=on -> bazel --//bazel/config:build_mode=dbg
      SCons opt=on, dbg=on -> bazel --//bazel/config:build_mode=dbg

      It should be

      SCons opt=on, dbg=off -> bazel --//bazel/config:build_mode=opt_on
      SCons opt=off, dbg=on -> bazel --//bazel/config:build_mode=dbg
      SCons opt=on, dbg=on -> bazel --//bazel/config:build_mode=opt_debug

            Assignee:
            zack.winter@mongodb.com Zack Winter
            Reporter:
            zack.winter@mongodb.com Zack Winter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: