Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] [GCC Flags] - compilation flags per file

Right-click on the file, and select "Properties", then "C/C++ Build -> Settings".

Here, you can modify build flags for selected file only.

Xavier

On 01/10/2014 05:11 PM, Rafael Peria de Sene wrote:
Hi. I would like to know if CDT has support to manage how to pass compilation flags per file instead of the whole project.

For instance, using GCC at command line I can do:

gcc -c -mloop-unroll asdf.c -o asdf.o
gcc -c qewr.c -o qwer.o
gcc asdf.o qwer.o -o blah

This is an example where I want to loop-unroll only asdf.c and do not apply it to qwer.c


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top