What is the way to specify platform dependent Linker options on a Mac?
for linux I use something like the following in my gpr file:
case os is
when "GNU/Linux" =>
not sure what is equivalent for the M1 Mac?
"Rajagopalan Srinivasan 192/73" <rsrin...@alumni.iitm.ac.in> writes:Excellent suggestion. The following worked:
What is the way to specify platform dependent Linker options on a Mac?
for linux I use something like the following in my gpr file:
case os is
when "GNU/Linux" =>
not sure what is equivalent for the M1 Mac?What is "os" in the above? If it's the environment variable OS then,
indeed, there's no equivalent on macOS (either kind of silicon).
I don't know whether Windows defines "OS", but if it does you could just
set Darwin (or whatever) as the default?
OS := external ("OS", "Darwin");
If you're using Alire, the generated config/{crate}_config.gpr contains
on macOS
Alire_Host_OS := "macOS";
I don't know whether Windows defines "OS", but if it does you could just
set Darwin (or whatever) as the default?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 365 |
Nodes: | 16 (0 / 16) |
Uptime: | 41:16:21 |
Calls: | 7,791 |
Calls today: | 1 |
Files: | 12,918 |
Messages: | 5,748,877 |