rapid7/metasploit-framework — pull request #1503 by rsmudge (2013-02-19 02:51:24+00:00)
Title: Allow generic/custom payload to generate an exe

The datastore value of ARCH has no effect on the array of
architectures the generic/custom payload is compatible with.
This commit forces the payload to update its list of compatible
architectures on generation if the ARCH value is set in the
datastore.

See:

http://dev.metasploit.com/redmine/issues/7755