Add g++12 for ubuntu builds. (#1914)

This commit is contained in:
Andreas Süßenbach 2024-07-11 09:36:14 +02:00 committed by GitHub
parent 630d8da8c6
commit 6f72ceca51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View File

@ -15,8 +15,7 @@ jobs:
strategy:
matrix:
# g++-12 fails on some very innocent code... excluding it for now
compiler: [clang++-13, clang++-14, clang++-15, g++-10, g++-11]
compiler: [clang++-13, clang++-14, clang++-15, g++-10, g++-11, g++-12]
steps:
- uses: actions/checkout@v4

View File

@ -23,6 +23,8 @@
#include <regex>
#include <sstream>
using namespace std::literals;
namespace
{
std::vector<std::pair<std::string, size_t>> filterNumbers( std::vector<std::string> const & names );
@ -7991,12 +7993,12 @@ std::string VulkanHppGenerator::generateHandleEmpty( HandleData const & handleDa
std::vector<std::string> commands = selectCommandsByHandle( feature.requireData, handleData.commands, listedCommands );
if ( !commands.empty() )
{
str += "\n //=== " + feature.name + " ===\n";
str += "\n //=== "s + feature.name + " ===\n";
for ( auto const & command : commands )
{
auto commandIt = m_commands.find( command );
assert( commandIt != m_commands.end() );
str += "\n" + generateCommand( commandIt->first, commandIt->second, 0, false, false );
str += "\n"s + generateCommand( commandIt->first, commandIt->second, 0, false, false );
}
}
}