Announcement

Collapse
No announcement yet.

GCC 12's Shiny New C++ Features - More Of C++23 Implemented

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • GCC 12's Shiny New C++ Features - More Of C++23 Implemented

    Phoronix: GCC 12's Shiny New C++ Features - More Of C++23 Implemented

    With GCC 12.1 due for release in roughly the next week or so, Red Hat's Marek Polacek penned a new blog post this week outlining many of the C++ language improvements to be found in this major GNU Compiler Collection update...

    https://www.phoronix.com/scan.php?pa...2-CPP-Features

  • #2
    No wonder I couldn't use #elifdef in a project, it's not in C++17...

    Comment


    • #3
      Be aware that since Friday the build is broken, you need a patch from the linked Bugzilla entry to make it work again: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105432 [update: the patch was just merged to trunk]
      Last edited by ms178; 01 May 2022, 10:58 AM.

      Comment


      • #4
        I thought that support for using Mold is also a part of GCC 12. That is a great addition.

        Comment


        • #5
          Originally posted by Azpegath View Post
          I thought that support for using Mold is also a part of GCC 12. That is a great addition.
          You can use mold with gcc11, but you have to trick gcc to do it.

          Create a directory on some node you have write rights and trick gcc to use it:
          export somenode=<something>
          mkdir -p ${somenode}/tmp
          ln -s /usr/bin/mold ${somenode}/tmp/ld
          gcc -B/${somenode}/tmp ...

          Comment


          • #6
            Originally posted by acobar View Post

            You can use mold with gcc11, but you have to trick gcc to do it.

            Create a directory on some node you have write rights and trick gcc to use it:
            export somenode=<something>
            mkdir -p ${somenode}/tmp
            ln -s /usr/bin/mold ${somenode}/tmp/ld
            gcc -B/${somenode}/tmp ...
            I prefer to use the method where you prefix your build command with mold -run that basically does this trick for you.

            as simple as mold -run make -j $(nproc)
            or mold -run ninja

            Comment

            Working...
            X