User manual

STM8 C tutorial UM0036
342/385 Doc ID 7705 Rev 11
Figure 270. C compiler options for Cosmic
12.2.3 Change build settings for a specific file
In addition to applying settings at the project level, you can also specify settings for a file. As
described in an earlier step, we have included the file main.c as a reference for
understanding STVD’s Project Settings interface. However, we do not want to include this
file in the build. In this step we will exclude this file from the build, by applying a file level
setting.
1. Right-click on main.c, then select Settings from the contextual menu.
2. In the resulting Project Settings window, place a checkmark in the box for Exclude file
from build.