Hi Leif,

On 2013-05-12, leif <[email protected]> wrote:
> In shell scripts (including spkg-install files), we usually just use 
> something like
>
> case `$CC -dumpversion 2>/dev/null` in
>      4.[01].*)
>          # Usually spoiled apples
>          ;;

I'm just thinking: Perhaps one could check the result rather than the
gcc version?

My spkg first builds a patched version of C-MeatAxe (for linear algebra
over finite fields) and then some programs of David Green (which use
C-MeatAxe, and I wouldn't like to rewrite them to use Linbox...); this
works pretty fast. After that, my Cython code gets processed, and this
takes some time.

And it is the programs of David Green which don't work with old gcc and
high optimization. So, before processing the Cython code, I could simply
call David's programs; if they work without error, then apparently the
gcc version was fine.

Would this be a valid approach?

Best regards,
Simon


-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to