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
215906dc
Unverified
Commit
215906dc
authored
Feb 07, 2019
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Feb 07, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4264 from shuujii/integrate-definition-of-exefile
Integrate definition of `MRuby::Build#exefile`
parents
d52f46da
c8628f7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
15 deletions
+4
-15
lib/mruby/build.rb
lib/mruby/build.rb
+4
-1
mrbgems/mruby-bin-mruby-config/mrbgem.rake
mrbgems/mruby-bin-mruby-config/mrbgem.rake
+0
-14
No files found.
lib/mruby/build.rb
View file @
215906dc
...
...
@@ -270,8 +270,11 @@ EOS
def
exefile
(
name
)
if
name
.
is_a?
(
Array
)
name
.
flatten
.
map
{
|
n
|
exefile
(
n
)
}
els
e
els
if
File
.
extname
(
name
).
empty?
"
#{
name
}#{
exts
.
executable
}
"
else
# `name` sometimes have (non-standard) extension (e.g. `.bat`).
name
end
end
...
...
mrbgems/mruby-bin-mruby-config/mrbgem.rake
View file @
215906dc
module
MRuby
class
Build
def
exefile
(
name
)
if
name
.
is_a?
(
Array
)
name
.
flatten
.
map
{
|
n
|
exefile
(
n
)
}
elsif
name
!~
/\./
"
#{
name
}#{
exts
.
executable
}
"
else
name
end
end
end
end
MRuby
.
each_target
do
next
if
kind_of?
MRuby
::
CrossBuild
...
...
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