I have only started learning about Ada recently and have discovered
the 'Image attribute that can be used on all types starting in ada
2022.
I am using Alire and added the following to include the `-gnat2022` switch. ```
for Default_Switches ("Ada") use Learning_Config.Ada_Compiler_Switches & ("-gnat2022");
```
The Alire documentation warns about switches ~"In general, this should
be avoided to preserve consistency in the ecosystem"
Is this the correct way about adding this switch or is there a way to
use a toolchain that already has it by default?
[build-switches]
"*".ada_version = "ada2022"
or
[build-switches]
"*".ada_version = ["-gnat2022"]
See "Release Information" (near the end) and "Build Profiles and
Switches" in the documentation.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 374 |
Nodes: | 16 (2 / 14) |
Uptime: | 08:07:26 |
Calls: | 7,975 |
Calls today: | 4 |
Files: | 13,017 |
Messages: | 5,819,862 |