mxcl/homebrew — pull request #13270 by jeffstyr (2012-07-07 23:06:32+00:00)
Title: build: `install --interactive --universal` doesn't set universal environment variables

If you `brew install --interactive --universal` a formula (which supports a universal option), you end up in an interactive shell which doesn't have its environment varialbes set for a universal build, because this setup is done inside the install methods of individual formulas. This is problematic during debugging because you end up debugging the wrong configuration. Moving the universal enviroment variable setup to match the X11 environment variable setup fixes the issue.

Going forward, I think --universal should be treated as an option to `install` itself, along the lines of `--use-clang`, with declarative support for individual formulae to opt out (or opt in, whichever way makes more sense), also similar to how Clang and LLVM are handled.