Use -target=$(PLATFORM) instead of -target=null for mig/ncg.