feat(link): drive output names and link flags from the object format

This commit is contained in:
milner committed 2022-07-18 07:56:15 +00:00
1 parent 3b38d20522
commit b8d3b7ebb1
4 files changed
+71 -17

No files matched your search

+1
View File
@@ -96,6 +96,7 @@ let platform_vars env plat arch =
[
("platform", plat);
("arch", arch);
("format", Binfmt.name (Binfmt.of_platform plat));
("linux", if plat = "linux" then "true" else "false");
("darwin", if plat = "darwin" then "true" else "false");
("bsd", if plat = "bsd" then "true" else "false");