Only build when no variant is selected

Change-Id: Ie6510597580dda223e19a9539968a191186820a8