Set envs for compile