[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

per-file compiler flags?

From: Markus Werle
Subject: per-file compiler flags?
Date: Mon, 23 Dec 2002 11:12:54 +0100


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"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]