Library/Compiler.php
public function getGccFlags($development = false)
    {
        if (is_windows()) {
            // TODO
            return '';
        }

        $gccFlags = getenv('CFLAGS');

        if (!\is_string($gccFlags)) {
            if (false === $development) {
                $gccVersion = $this->getGccVersion();
                if (version_compare($gccVersion, '4.6.0', '>=')) {
                    $gccFlags = '-O2 -fvisibility=hidden -Wparentheses -flto -DZEPHIR_RELEASE=1';
                } else {
                    $gccFlags = '-O2 -fvisibility=hidden -Wparentheses -DZEPHIR_RELEASE=1';
                }
            } else {
                $gccFlags = '-O0 -g3';
            }
        }

        return $gccFlags;
    }
public function getGccFlags($development = false)
    {
        if (is_windows()) {
            // TODO
            return '';
        }

        $gccFlags = getenv('CFLAGS');

        if (!\is_string($gccFlags)) {
            if (false === $development) {
                $gccVersion = $this->getGccVersion();
                if (version_compare($gccVersion, '4.6.0', '>=')) {
                    $gccFlags = '-O2 -fvisibility=hidden -Wparentheses -flto -DZEPHIR_RELEASE=1';
                } else {
                    $gccFlags = '-O2 -fvisibility=hidden -Wparentheses -DZEPHIR_RELEASE=1';
                }
            } else {
                $gccFlags = '-O0 -g3';
            }
        }

        return $gccFlags;
    }
public function getGccFlags ( $ development = false ) { if ( is_windows ( ) ) { // TODO return '' ; } $ gccFlags = getenv ( 'CFLAGS' ) ; if ( ! \ is_string ( $ gccFlags ) ) { if ( false === $ development ) { $ gccVersion = $ this -> getGccVersion ( ) ; if ( version_compare ( $ gccVersion , '4.6.0' , '>=' ) ) { $ gccFlags = '-O2 -fvisibility=hidden -Wparentheses -flto -DZEPHIR_RELEASE=1' ; } else { $ gccFlags = '-O2 -fvisibility=hidden -Wparentheses -DZEPHIR_RELEASE=1' ; } } else { $ gccFlags = '-O0 -g3' ; } } return $ gccFlags ; }
Returns GCC flags for current compilation.

@param bool $development

@return string
Returns GCC flags for current compilation .