Just the setup that emilio came up with to manage his builds.
Just put the bin directory somewhere in your PATH and do:
$ buildwith debug
For a debug build, or:
$ buildwith debug asan noopt
For an unoptimized asan build. And so on.
Git repo: https://github.com/emilio/mozconfigs