From: "Peter C. Chapin" <PChapin@vtc.vsc.edu>
Subject: Re: Question about GNAT project files.
Date: Wed, 29 Feb 2012 09:51:51 -0500
Date: 2012-02-29T09:51:51-05:00 [thread overview]
Message-ID: <C-KdnSPM0swaptPS4p2dnAA@giganews.com> (raw)
In-Reply-To: <MPG.29b7fdd0da09567e98968f@news.zen.co.uk>
On 2012-02-29 04:18, Phil Thornley wrote:
> So create a spark.sw file in the various working directories
> (presumably the same ones as the GPS project files) with at least the
> index_file option specified appropriately and do not specify the index
> file in the GPS project file.
Alas this doesn't work for me either. My problem is that I want to
support both Linux and Windows development. It turns out I can use
forward slashes on the Examiner command line as a path delimiter for
either system. Thus
spark -index_file=src/spark.idx
Works as desired on both Windows and Linux platforms. However, when I
put the following into my spark.sw file
-index_file=src/spark.idx
It works fine under Linux but on Windows I'm told "spark.idx is an
invalid command line option." Apparently the parsing of these options is
not identical between the spark.sw file and the actual command line. I
can use
-index_file=src\spark.idx
on Windows but, of course, that won't work on Linux. Furthermore I have
to use the same spark.sw file on both systems (right?). I tried
enclosing the value of the switch in quotation marks
-index_file="src/spark.idx"
but this produced the same result.
I have a feeling that the right answer is for GPS to change to the
subproject's home directory when issuing the SPARK commands for that
project. Maybe this is a "bug" in the SPARK/GPS plugin.
Peter
next prev parent reply other threads:[~2012-02-29 14:51 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-26 19:48 Question about GNAT project files Peter C. Chapin
2012-02-26 20:15 ` Dmitry A. Kazakov
2012-02-26 22:18 ` Greg Moncreaff
2012-02-27 13:41 ` Peter C. Chapin
2012-02-28 16:59 ` Yannick Duchêne (Hibou57)
2012-02-28 18:10 ` AdaMagica
2012-02-28 18:14 ` Simon Wright
2012-02-27 13:08 ` Ludovic Brenta
2012-02-27 13:43 ` Peter C. Chapin
2012-02-27 15:27 ` Simon Wright
2012-02-28 2:02 ` Peter C. Chapin
2012-02-28 6:56 ` Phil Thornley
2012-02-29 0:04 ` Peter C. Chapin
2012-02-29 9:18 ` Phil Thornley
2012-02-29 14:51 ` Peter C. Chapin [this message]
2012-02-29 16:49 ` Phil Thornley
2012-02-29 17:17 ` Peter C. Chapin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox