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
d6665fc4
Commit
d6665fc4
authored
Oct 06, 2015
by
Seba Gamboa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add optional params to toolchain configuration
parent
98762c5a
Changes
1
Show 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 @
d6665fc4
...
@@ -26,8 +26,8 @@ module MRuby
...
@@ -26,8 +26,8 @@ module MRuby
MRuby
::
Toolchain
.
toolchains
[
@name
]
=
self
MRuby
::
Toolchain
.
toolchains
[
@name
]
=
self
end
end
def
setup
(
conf
)
def
setup
(
conf
,
params
=
{}
)
conf
.
instance_e
val
(
&
@initializer
)
conf
.
instance_e
xec
(
conf
,
params
,
&
@initializer
)
end
end
def
self
.
load
def
self
.
load
...
@@ -158,10 +158,10 @@ EOS
...
@@ -158,10 +158,10 @@ EOS
@enable_bintest
@enable_bintest
end
end
def
toolchain
(
name
)
def
toolchain
(
name
,
params
=
{}
)
tc
=
Toolchain
.
toolchains
[
name
.
to_s
]
tc
=
Toolchain
.
toolchains
[
name
.
to_s
]
fail
"Unknown
#{
name
}
toolchain"
unless
tc
fail
"Unknown
#{
name
}
toolchain"
unless
tc
tc
.
setup
(
self
)
tc
.
setup
(
self
,
params
)
@toolchains
.
unshift
name
.
to_s
@toolchains
.
unshift
name
.
to_s
end
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