Checkonly

(Project Properties window)

*.prj\COMPILE\Compilation\
Checkonly

Set to false by default. If set to true, the compiler performs syntax checking only, no object file is created.

See –-no_code_gen in the documentation for your toolchain.