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

Unify scons and bazel C/C++ toolchain

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

      Currently scons will select some local toolchain, usually /opt/mongodbtoolchain or one installed in system dirs like /usr/bin, but bazel will use its own toolchain that it downloads. We need to make sure scons and bazel are using the same toolchain as this code is getting linked together and certain combinations of toolchains could lead to obscure confusing errors.

       

      We should also support bazel using a custom toolchain passed via the command line. We can achieve this by falling back to bazel default toolchain config and passing CC and CXX in the environment.

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

              Created:
              Updated:
              Resolved: