Sorry, I have found that the level should be set in the project, Instead the target.
The following issues have been resolved:
I can not replace the target compiler in my build script.
The script function:"SetCompilerID" only change the compiler's name.
I want to replace with a different compiler in the build script, how should I do?