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

Updating build system to allow for different C++ compilers

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: