from this comment: #168273 (comment) .
Builder::getBuildCommand
accepts architecture as param
and calls to
self.getArchCFlags(architecture),
self.getArchSpec(architecture),
to prepare a build command.
which both under the hood call to getTriple which is not taking into account arch parameter and return triple from configuration (which is apparently also None).
And so the command used to build a target does not take into account architecture when its value is provided to build and getBuildCommand.