update compiler flag for single compile