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

Use vertical style blocks for listing compile_flags

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • 69

      We've historically represented compile_flags as a single line, ex:

      compile_flags: --dbg=on --opt=on -j$(grep -c ^processor /proc/cpuinfo) --link-model=dynamic --variables-files=etc/scons/mongodbtoolchain_testing_gcc.vars 

      but it's way more readable to list them using YAML's vertical style blocks:

      compile_flags: >-
        --dbg=on 
        --opt=on 
        -j$(grep -c ^processor /proc/cpuinfo) 
        --link-model=dynamic
        --variables-files=etc/scons/mongodbtoolchain_testing_gcc.vars 

      This ticket represents making a bulk change to all compile_flags expansions. This can also apply to a number of other expansions: csfle_task_compile_flags, task_compile_flags, test_flags, burn_in_tag_buildvariants, additional_package_targets

            Assignee:
            trevor.guidry@mongodb.com Trevor Guidry
            Reporter:
            richard.samuels@mongodb.com Richard Samuels (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: