This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

per-file compiler flags?


Hi!

Consider the following case:

File VeryImportant.C contains code that really needs some
optimization available. But all other files could (at least during development)
be compiled without optimization, for the sake of not drinking too much coffee
due to long compilation times.

Is there a convenient way to achieve the following behaviour:

If (gcc is the compiler)
   Add to compilation of VeryImportant.C
   the optimizer flags: CPPFLAGS+="-O9 -finline -funroll-loops"
else if(intel C++ is the compiler)
  Add the optimizer flags: CPPFLAGS+="-ip -unroll"
endif

Markus




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]