How can I specify different compiler options for individual files in a project?

How can I specify different compiler options for individual files in a project?