Add GCC 14

This commit is contained in:
Steffen Lange 2024-08-05 12:13:59 +02:00
parent 16afffc9ab
commit f20a93d8db

View file

@ -1,13 +1,13 @@
<?php <?php
class GCC11 extends PatchBase { class GCC14 extends PatchBase {
function __construct() { function __construct() {
parent::__construct('Free Software Foundation', 'GNU Compiler Collection', 'https://gcc.gnu.org/'); parent::__construct('Free Software Foundation', 'GNU Compiler Collection', 'https://gcc.gnu.org/');
$this->patch->setBranch('11'); $this->patch->setBranch('14');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://gcc.gnu.org/')) if ($this->fetch('https://gcc.gnu.org/'))
return $this->parse('/<span class="version"><a href="gcc-11\/">GCC ([\d\.]+)/'); return $this->parse('/<span class="version"><a href="gcc-14\/">GCC ([\d\.]+)/');
return false; return false;
} }
} }