From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Raising "exception" in a .gpr file
Date: Fri, 13 Aug 2021 09:44:09 +0200 [thread overview]
Message-ID: <sf57s9$ddn$1@gioia.aioe.org> (raw)
In-Reply-To: ce96c9ca-ae18-4ccd-a6c9-768a6a28ff8cn@googlegroups.com
On 2021-08-13 09:23, mockturtle wrote:
> Just to be clear, I am thinking to something like
>
> case OS is
> ...when "linux" =>
> ......Arch_Sources := "src/Linux";
>
> ...when "macos" =>
> ......Arch_Sources := "src/Mac";
>
> ...when "windows" =>
> ......raise "This library makes no sense with this OS";
> end case;
>
> I tried to look in the manual, this newsgroup and googled a bit, but I did not find anything. I am afraid that this is not possible (although I think it could be a nice addition).
There are many nice addition they could have, starting with predefined
variables for the host OS, host machine and a sane set of operations
defined on strings.
> Do you know if this is possible and how?
You could refer to an non-existing source file in the choice:
when "windows" =>
for Source_Files use ("This library makes no sense with this OS");
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2021-08-13 7:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-13 7:23 Raising "exception" in a .gpr file mockturtle
2021-08-13 7:44 ` Dmitry A. Kazakov [this message]
2021-08-13 8:11 ` mockturtle
2021-08-13 15:40 ` Björn Lundin
2021-08-15 16:00 ` Mark Lorenzen
2021-08-15 16:21 ` Britt
2021-08-16 13:13 ` Fabien Chouteau
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox