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

Drastically simplify command to generate ninja files

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.1, 4.4.16, 5.0.11, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • v6.0, v5.0, v4.4
    • Dev Platform 2022-06-27, Dev Platform 2022-07-11

      Here is the command to generate an asan ninja file

      python ./buildscripts/scons.py --variables-files=./etc/scons/mongodbtoolchain_stable_clang.vars --allocator=system --sanitize=address --link-model=dynamic --dbg --ninja generate-ninja ICECC=icecc CCACHE=ccache NINJA_PREFIX=asan VARIANT_DIR=asan --variables-files=etc/scons/developer_versions.vars 

      Note that "--variables-files=etc/scons/developer_versions.vars" is on a trial run so we should not include it (for now)

      We should make this command a one or two liner

      Something like

      ./buildscripts/ninja-asan.py
      

      An added benefit of this is that we get a layer of abstraction so we can change small things about the command but the result will be an ASAN build which is what a developer expects.

            Assignee:
            tausif.rahman@mongodb.com Tausif Rahman (Inactive)
            Reporter:
            alex.neben@mongodb.com Alex Neben
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: