stan-dev/pystan — pull request #33 by kcarnold (2013-11-21 19:46:49+00:00)
Title: Default to no compiler optimization for extensions

clang++ miscompiles the stanc parser at high optimization levels (see https://groups.google.com/d/msg/stan-users/HP3YjPrBKO0/VVuJyE3Gs-EJ).

Fortunately, stanc isn't the thing that needs to be fast.

Since libstan is not affected by this issue, this commit splits out
the compiler flags for libstan from those for the extensions (mostly
stanc), and backs the latter down to -O0.

(Note that I haven't actually tested this exact code, since compiling still takes a while...)