Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-4649

Updating build system to allow for different C++ compilers

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.0, 4.9.0, 4.4.4
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 5
    • Storage - Ra 2021-01-25, Storage - Ra 2021-02-08

      In WT-4655, we are proposing disabling the build for workgen if we're not using cc as a compiler.  This is basically to ensure that we have a working set of compilers (clang++ installed on Ubuntu doesn't work), but also addresses an interoperability problem: if you configure with CC=clang and not set CXX, you'll get gcc's c++ trying to interoperate with clang.

      To detect problems more directly (and allow builds of workgen to use clang), it could make sense to have configure test out: build a function in a C module, and call it from a C++ main.  If that fails, the caller must set CC/CXX/CXXLINK appropriately.

            Assignee:
            etienne.petrel@mongodb.com Etienne Petrel
            Reporter:
            donald.anderson@mongodb.com Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: