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



Reply via email to