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

Generate workgen swig interface with .cpp instead of .cxx

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Engines - 2023-01-10

      As part of WT-10458 the remaining .cxx extensions in the codebase are being renamed to .cpp. However despite modifying the CMakeLists.txt in the the bench/workgen directory the workgenPYTHON_wrap.cxx file is still being generated as .cxx I attempted a fix using:

      @@ -69,6 +69,7 @@ list(APPEND swig_flags "-interface;_workgen")
       list(APPEND swig_flags "-threads")
       list(APPEND swig_flags "-O")
       list(APPEND swig_flags "-Wall")
      +list(APPEND swig_flags "-cppext;cpp")
       # Pass in our generated include directories.
       list(APPEND swig_flags "-I${CMAKE_BINARY_DIR}/include")
       list(APPEND swig_flags "-I${CMAKE_BINARY_DIR}/config")
      

      This didn't have the desired outcome, I'm creating this ticket to track the issue and unblock WT-10458.

      Scope:

      • Update file generation to create a .cpp file instead of a .cxx file.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            luke.pearson@mongodb.com Luke Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: