Skip to content

Commit 11582b6

Browse files
committed
libsupport.gpr: minimize C language inclusion
In preparation to the introduction of a CCG testsuite run, minimize the cases in which C is listed as a required language in libsupport.gpr. CCG does not support compiling projects with C sources. As such, only include the C language in a cross targeted scenario, when there actually are C files to be compiled.
1 parent 2b3f0ee commit 11582b6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tools/gnatcov/examples/support/libsupport.gpr

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ library project Libsupport is
2020

2121
for Library_Kind use "static";
2222
for Library_Auto_Init use "False";
23-
for Languages use ("Ada", "C");
23+
24+
Langs := ("Ada");
2425

2526
for Library_Dir use "lib/" & Conf.Target;
2627
for Object_Dir use "obj/" & Conf.Target;
@@ -47,10 +48,12 @@ library project Libsupport is
4748
Source_Dirs := ("src", "src/helpers");
4849

4950
case Conf.Target is
50-
when "" => null;
51+
when "" | "c" => null;
5152

5253
when others =>
5354

55+
Langs := Langs & ("C");
56+
5457
Source_Dirs := Source_Dirs & ("src/memory");
5558
Source_Dirs := Source_Dirs & ("src/" & Conf.Target);
5659

@@ -71,7 +74,9 @@ library project Libsupport is
7174
("src/last_chance_" & Conf.Board);
7275
end case;
7376

74-
end case;
77+
end case;
78+
79+
for Languages use Langs;
7580

7681
for Source_Dirs use Source_Dirs;
7782

0 commit comments

Comments
 (0)