Closed Jellix closed 4 years ago
Hello,
I think Yannick's comment is slightly incorrect, the tool indeed takes into account the switches specified for the body file if it exists (and ignores any switches specified for the spec file in that case). Switches for spec files are taken into account only if there is no body.
In my experiments this is consistent with gprbuild's Switches
attribute. We will clarify this in the documentation.
Thank you very much for the clarification.
That confirms the observed behaviour and validates my decision to prefer body files for the Proof_Switches
.
We have clarified this now in the doc (may take a couple of days to appear online).
Hi there, developer of SPAT here.
For now, this is more of a question than a bug report, so bear with me:
If you look at this issue comment:
So, I naturally assumed that for a single compilation unit it doesn't matter if you specify spec or body file as long as one of them is mentioned, so I opted to prefer the spec file.
Now, I got the other issue comment:
Which leads to the question: How is
gnatprove
supposed to handle file specific switches for spec and body file? There seems to be a discrepancy between the somewhat documented and the actual behaviour (given the limited information I have).