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
2e4bc2de
Commit
2e4bc2de
authored
Jun 22, 2015
by
take_cheeze
Committed by
Yukihiro "Matz" Matsumoto
Jul 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor `Build#compile_as_cxx`.
parent
69a2c5cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
tasks/mruby_build.rake
tasks/mruby_build.rake
+3
-4
No files found.
tasks/mruby_build.rake
View file @
2e4bc2de
...
...
@@ -127,8 +127,8 @@ module MRuby
obj
=
objfile
(
cxx_src
)
if
obj
.
nil?
file
cxx_src
=>
[
src
,
__FILE__
]
do
|
t
|
File
.
open
(
t
.
name
,
'w'
)
do
|
f
|
f
.
write
<<
EOS
File
Utils
.
mkdir_p
File
.
dirname
t
.
name
IO
.
write
t
.
name
,
<<
EOS
#define __STDC_CONSTANT_MACROS
#define __STDC_LIMIT_MACROS
...
...
@@ -136,9 +136,8 @@ extern "C" {
#include "
#{
src
}
"
}
#{
File
.
basename
(
src
)
==
'error.c'
?
'mrb_int mrb_jmpbuf::jmpbuf_id = 0;'
:
''
}
#{
src
==
"
#{
MRUBY_ROOT
}
/src/error.c"
?
'mrb_int mrb_jmpbuf::jmpbuf_id = 0;'
:
''
}
EOS
end
end
file
obj
=>
cxx_src
do
|
t
|
...
...
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