Replace architecture flag with compile mode flag