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

SCons should honor CC and CXX from the environment

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.0
    • Affects Version/s: 2.4.0-rc0
    • Component/s: Build
    • None

      Many C++ utilities (static analysis tools, compiler wrappers, tag generators) expect to be set as the compiler, and then determine the base compiler to actually invoke by inspecting the well known CC and CXX environment variables.

      Similarly, users attempting to build mongo often expect 'CC=/path/to/cc CXX=/path/to/cxx SCons mongod' to work. It is not immediately obvious that they should use the --cc and --cxx options instead.

      We should conform with well established practice and honor CC and CXX from the environment, unless overridden by --cc and --cxx on the command line.

      We should also ensure that CC and CXX variables that are set in the environment are tunneled through the Env and are available to child procs.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: