[build] Support build variants for components

This change mimic's the package templates behavior when the current
toolchain and the target toolchain are not the same.

Test: build with no variants and "asan" variant

BLD-329 #done

Change-Id: I2b81e6522472b6ec9f102310ada4e856471977a3
1 file changed