Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
043fe9d9
Unverified
Commit
043fe9d9
authored
Feb 04, 2021
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Feb 04, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5319 from shuujii/check-if-.pi-build-rules-are-defined
Check if `.pi` build rules are defined
parents
6f354322
67a28b56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
tasks/presym.rake
tasks/presym.rake
+8
-4
No files found.
tasks/presym.rake
View file @
043fe9d9
...
...
@@ -17,7 +17,7 @@ MRuby.each_target do |build|
build
.
gems
.
each
{
|
gem
|
gem
.
compilers
.
each
{
|
c
|
c
.
include_paths
<<
include_dir
}}
prereqs
=
{}
pps
=
[]
pp
p
s
=
[]
build_dir
=
"
#{
build
.
build_dir
}
/"
mrbc_build_dir
=
"
#{
build
.
mrbc_build
.
build_dir
}
/"
if
build
.
mrbc_build
build
.
products
.
each
{
|
product
|
all_prerequisites
.
(
product
,
prereqs
)}
...
...
@@ -25,11 +25,15 @@ MRuby.each_target do |build|
next
unless
File
.
extname
(
prereq
)
==
build
.
exts
.
object
next
unless
prereq
.
start_with?
(
build_dir
)
next
if
mrbc_build_dir
&&
prereq
.
start_with?
(
mrbc_build_dir
)
pps
<<
prereq
.
ext
(
build
.
exts
.
presym_preprocessed
)
ppp
=
prereq
.
ext
(
build
.
exts
.
presym_preprocessed
)
if
Rake
.
application
.
lookup
(
ppp
)
||
Rake
.
application
.
enhance_with_matching_rule
(
ppp
)
ppps
<<
ppp
end
end
file
presym
.
list_path
=>
pps
do
presyms
=
presym
.
scan
(
pps
)
file
presym
.
list_path
=>
pp
p
s
do
presyms
=
presym
.
scan
(
pp
p
s
)
current_presyms
=
presym
.
read_list
if
File
.
exist?
(
presym
.
list_path
)
update
=
presyms
!=
current_presyms
presym
.
write_list
(
presyms
)
if
update
...
...
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