Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
3ce8411a
Commit
3ce8411a
authored
Sep 01, 2020
by
Maxime Perrotin
Browse files
Generate the _ri stub only in non-taste targets
parent
638772ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/AdaGenerator.py
View file @
3ce8411a
...
...
@@ -1234,9 +1234,10 @@ package {process_name}_RI is''']
ada_file
.
write
(
'
\n
'
.
join
(
format_ada_code
(
ads_template
)).
encode
(
'latin1'
))
with
open
(
f
"
{
process_name
.
lower
()
}
_ri.ads"
,
"wb"
)
as
ri_stub
:
ri_stub
.
write
(
"
\n
"
.
join
(
format_ada_code
(
ri_stub_template
)).
encode
(
'latin1'
))
if
not
taste
:
with
open
(
f
"
{
process_name
.
lower
()
}
_ri.ads"
,
"wb"
)
as
ri_stub
:
ri_stub
.
write
(
"
\n
"
.
join
(
format_ada_code
(
ri_stub_template
)).
encode
(
'latin1'
))
with
open
(
"{}_ada.gpr"
.
format
(
process_name
.
lower
()),
"wb"
)
as
gprada
:
gprada
.
write
(
ada_gpr
.
encode
(
'utf-8'
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment