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

Updating build system to allow for different C++ compilers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT10.0.0, 4.9.0, 4.4.4
    • None
    • None
    • 5
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: