Pyrex on Darwin, gcc 3.3 optimization trouble

W

Will Ware

I am trying to build a Pyrex module on Mac OS X version 10.3.9 (don't
know which big cat that is). It already builds fine on Mandrake Linux
and Windows XP. I have one source file where gcc hangs if given an
optimization setting of -O2 or -O3, but a level of -O works fine.

Can anybody suggest an approach to debugging this? I'm comfortable on
Linux but I can't find my way out of a paper bag on a Mac.

Also, is there a Pyrex or distutils option for limiting the compiler
optimization level, ideally on a per-platform basis?

Thanks much
Will Ware
 
W

Will Ware

In case anybody else has this problem, the solution is to add "-O" in
extra_compile_args, which will override the "-O3" normally used. This
is done in the setup.py file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top