Unify scons and bazel C/C++ toolchain

XMLWordPrintableJSON

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

      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
              Reporter:
              Daniel Moody
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: