Pyrex on Darwin, gcc 3.3 optimization trouble

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Will Ware

    #1

    Pyrex on Darwin, gcc 3.3 optimization trouble

    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

  • Will Ware

    #2
    Re: Pyrex on Darwin, gcc 3.3 optimization trouble

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

    Comment

    Working...