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

  • FPScholten
    replied
    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

    Leave a comment:


  • acobar
    replied
    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 ...

    Leave a comment:


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

    Leave a comment:


  • ms178
    replied
    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.

    Leave a comment:


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

    Leave a comment:


  • 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...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite
Working...
X