|
|
|
@ -156,6 +156,7 @@ class CompilerBase extends \PhpAot\Core\Translator |
|
|
|
protected int $maxJob = 4; |
|
|
|
protected int $maxJob = 4; |
|
|
|
protected string $buildMode = 'bin'; |
|
|
|
protected string $buildMode = 'bin'; |
|
|
|
protected string $cxxflags = ''; |
|
|
|
protected string $cxxflags = ''; |
|
|
|
|
|
|
|
protected string $cxxStd = 'c++14'; |
|
|
|
protected string $ldflags = ''; |
|
|
|
protected string $ldflags = ''; |
|
|
|
protected int $floatPrecision = 17; |
|
|
|
protected int $floatPrecision = 17; |
|
|
|
protected bool $debugInfo = false; |
|
|
|
protected bool $debugInfo = false; |
|
|
|
@ -2110,6 +2111,9 @@ class CompilerBase extends \PhpAot\Core\Translator |
|
|
|
if ($this->cxxflags) { |
|
|
|
if ($this->cxxflags) { |
|
|
|
$cmd .= ' ' . $this->cxxflags; |
|
|
|
$cmd .= ' ' . $this->cxxflags; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (!str_contains($this->cxxflags, ' -std=')) { |
|
|
|
|
|
|
|
$cmd .= ' -std=' . $this->cxxStd; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|