comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: M1 MAC - libraries
Date: Mon, 31 Jul 2023 08:58:59 +0100	[thread overview]
Message-ID: <ly8rawa4vw.fsf@pushface.org> (raw)
In-Reply-To: 23b32951-0629-4227-bc10-fdf10d3cd7e4n@googlegroups.com

"Rajagopalan Srinivasan 192/73" <rsrinivasan@alumni.iitm.ac.in> writes:

> 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";

  reply	other threads:[~2023-07-31  7:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-30 23:34 M1 MAC - libraries Rajagopalan Srinivasan 192/73
2023-07-31  7:58 ` Simon Wright [this message]
2023-07-31  9:07   ` Rajagopalan Srinivasan 192/73
2023-07-31 16:25   ` Dennis Lee Bieber
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox