Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Ocarina
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
TASTE
Ocarina
Commits
9c069f83
Commit
9c069f83
authored
May 29, 2020
by
yoogx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Extend VPATH in the case of source code defined in other
directories. For openaadl/ocarina#255
parent
b6cb7913
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
src/backends/ocarina-backends-build_utils.adb
src/backends/ocarina-backends-build_utils.adb
+9
-4
No files found.
src/backends/ocarina-backends-build_utils.adb
View file @
9c069f83
...
...
@@ -2005,8 +2005,6 @@ package body Ocarina.Backends.Build_Utils is
---------------------
procedure
Compile_C_Files
(
C_Sources
:
Name_Tables
.
Instance
)
is
pragma
Unreferenced
(
C_Sources
);
begin
-- Define VPATH, search path for All Prerequisites
...
...
@@ -2014,8 +2012,15 @@ package body Ocarina.Backends.Build_Utils is
if
Scenario_Dir
/=
null
then
Write_Str
(
":"
&
Scenario_Dir
.
all
);
end
if
;
Write_Eol
;
Write_Eol
;
if
Length
(
C_Sources
)
>
0
then
for
J
in
Name_Tables
.
First
..
Name_Tables
.
Last
(
C_Sources
)
loop
Write_Str
(
":"
);
Write_Str
(
Dir_Name
(
Get_Name_String
(
C_Sources
.
Table
(
J
))));
exit
when
J
=
Name_Tables
.
Last
(
C_Sources
);
end
loop
;
end
if
;
-- Generic rule for compiling C files
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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