Skip to content
This repository was archived by the owner on May 22, 2023. It is now read-only.

Commit 5a1e244

Browse files
committed
select custom runtimes
1 parent 5259046 commit 5a1e244

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

Diff for: ada_interface.gpr

+13-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ project Ada_Interface is
66

77
Platform : Platform_Type := external ("PLATFORM", "linux");
88
Test := external ("TEST", "");
9+
Custom_Runtime := external ("RUNTIME", "componolit");
910

1011
Source := ("src", "src/common");
1112
Source_Platform := "src/platform";
@@ -88,10 +89,20 @@ project Ada_Interface is
8889
end Compiler;
8990

9091
package Linker is
91-
for Required_Switches use ("-L../ada-runtime/obj/lib", "-lposix_rts", "-lpthread", "-lrt");
92+
case Custom_Runtime is
93+
when "componolit" =>
94+
for Required_Switches use ("-L../ada-runtime/obj/lib", "-lposix_rts", "-lpthread", "-lrt");
95+
when others =>
96+
for Required_Switches use ("-lrt");
97+
end case;
9298
end Linker;
9399

94-
for Runtime ("Ada") use "ada-runtime/obj";
100+
case Custom_Runtime is
101+
when "componolit" =>
102+
for Runtime ("Ada") use "ada-runtime/obj";
103+
when others =>
104+
null;
105+
end case;
95106

96107
case Platform is
97108
when "linux" =>

0 commit comments

Comments
 (0)