From: gautier_niouzes@hotmail.com
Subject: Q: Multiple GNAT project files and object directories
Date: Tue, 9 Jul 2013 13:44:26 -0700 (PDT)
Date: 2013-07-09T13:44:26-07:00 [thread overview]
Message-ID: <062c95f8-445d-49f1-8bd2-76481f146cf7@googlegroups.com> (raw)
Hello,
Quick question (probably with a long answer ;-) ):
How do I force all object files to land into a single directory, including the object files of "with"-ed projects ?
With
for Object_Dir use "obj";
only the object files for the project are put into it.
The "with"-ed projects have their own Object_Dir's, and their object files appear there. Fair enough.
Now I have a more complicated situation: a main project with different build modes. So the Object_Dir depends on this build mode:
case Build_Mode is
when "Debug" =>
for Object_Dir use "../obj/debug";
when "Fast" =>
for Object_Dir use "../obj/fast";
when "Profiling" =>
for Object_Dir use "../obj/profiling";
end case;
The snag is: the "with"-ed projects do not know about that and use only their own single Object_Dir. GNAT is smart enough to recompile everything in the "with"-ed projects upon a build mode change. But it makes the build very long each time a mode is changed. At worst we would have different sets of compiler options in the object files to be linked.
TIA for any clue...
_________________________
Gautier's Ada programming
http://sf.net/users/gdemont
next reply other threads:[~2013-07-09 20:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-09 20:44 gautier_niouzes [this message]
2013-07-09 21:27 ` Q: Multiple GNAT project files and object directories Dmitry A. Kazakov
2013-07-09 21:42 ` Simon Wright
2013-07-10 8:00 ` gautier_niouzes
2013-07-10 8:28 ` Pascal Obry
2013-07-10 12:37 ` Simon Wright
2013-07-10 13:34 ` gautier_niouzes
2013-07-10 17:44 ` J-P. Rosen
2013-07-10 19:45 ` Simon Wright
2013-07-11 3:45 ` gautier_niouzes
2013-07-10 19:53 ` Simon Wright
2013-07-11 4:21 ` gautier_niouzes
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox