On Jan 24, 2008, at 9:35 PM, Ryan Schmidt wrote:
That makes good sense to me, especially after looking at the ghc Portfile.
The gsl port seems to think this functionality already exists:
platform darwin 6 7 { configure.cflags-append "-O1" }
I wonder whether this section actually gets used on Panther or Jaguar...
Looking at the code, I don't think it can be. The current code treats the arguments as "platform-name [arch] [version]", so the above statement is only matching for darwin version 7, architecture "6". Unfortunately, fixing this is a bit more complicated than simply hacking some regex matches. The platform procedure just recasts its arguments in terms of a variant, so you'd have to walk the set notation and register multiple variants for each element. I may still find time to do this, but it's more complicated than a 10 minute change. - Jordan