chameleon
chameleon

Reputation: 41

Why does gprbuild behave differently when building a library on Linux and Windows?

I'm porting a dynamic Ada library from Windows to CentOS 7 with the following options:

for Library_Kind use "dynamic";
for Library_Auto_Init use "False";
for Library_Interface use ("my_lib_interface");   

On Windows, gprbuild starts by compiling my_lib_interface and then proceeds to compile all the withed units. This means that if a file is present in Source_Dirs but it's not used by anyone, it will be ignored. On CentOS, gprbuild compiles every single file, apparently going in descending alphabetical order(?) and causing a compilation error, because there are files that should not be compiled (this is a big project and I do not have full control on the directories).

Why does gprbuild behave differently? Is there a way to obtain the Windows behaviour without excluding the unused source files from the project?

Upvotes: 1

Views: 282

Answers (0)

Related Questions