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
2d29d140
Commit
2d29d140
authored
Oct 07, 2015
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2978 from sagmor/toolchain-params
Add optional params to toolchain configuration
parents
98762c5a
d6665fc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tasks/mruby_build.rake
tasks/mruby_build.rake
+4
-4
No files found.
tasks/mruby_build.rake
View file @
2d29d140
...
...
@@ -26,8 +26,8 @@ module MRuby
MRuby
::
Toolchain
.
toolchains
[
@name
]
=
self
end
def
setup
(
conf
)
conf
.
instance_e
val
(
&
@initializer
)
def
setup
(
conf
,
params
=
{}
)
conf
.
instance_e
xec
(
conf
,
params
,
&
@initializer
)
end
def
self
.
load
...
...
@@ -158,10 +158,10 @@ EOS
@enable_bintest
end
def
toolchain
(
name
)
def
toolchain
(
name
,
params
=
{}
)
tc
=
Toolchain
.
toolchains
[
name
.
to_s
]
fail
"Unknown
#{
name
}
toolchain"
unless
tc
tc
.
setup
(
self
)
tc
.
setup
(
self
,
params
)
@toolchains
.
unshift
name
.
to_s
end
...
...
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