crete flag to set build type

Change-Id: I9d20a4a6d1bfbe97415f775219958efb80761596