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
d7668c5f
Commit
d7668c5f
authored
Jan 04, 2013
by
Yuichiro MASUI
Committed by
Daniel Bovensiepen
Jan 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed pure ruby mrbgems can't compile and fixed build script wrong variable name
parent
67541a3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
tasks/mruby_build.rake
tasks/mruby_build.rake
+4
-4
tasks/mruby_gem_spec.rake
tasks/mruby_gem_spec.rake
+1
-1
No files found.
tasks/mruby_build.rake
View file @
d7668c5f
...
@@ -20,7 +20,7 @@ module MRuby
...
@@ -20,7 +20,7 @@ module MRuby
attr_accessor
:ld
,
:ldflags
,
:libs
attr_accessor
:ld
,
:ldflags
,
:libs
attr_accessor
:ar
attr_accessor
:ar
attr_writer
:cxx
,
:cxxflags
attr_writer
:cxx
,
:cxxflags
attr_writer
:objcc
,
:objc
c
flags
attr_writer
:objcc
,
:objcflags
attr_writer
:asm
,
:asmflags
attr_writer
:asm
,
:asmflags
attr_accessor
:gperf
,
:yacc
attr_accessor
:gperf
,
:yacc
attr_accessor
:cat
,
:git
attr_accessor
:cat
,
:git
...
@@ -46,13 +46,13 @@ module MRuby
...
@@ -46,13 +46,13 @@ module MRuby
end
end
def
cxx
;
@cxx
||
cc
;
end
def
cxx
;
@cxx
||
cc
;
end
def
cxxflags
;
@cxxflags
.
empty?
?
cflags
:
@cxxflags
;
end
def
cxxflags
;
!
@cxxflags
||
@cxxflags
.
empty?
?
cflags
:
@cxxflags
;
end
def
objcc
;
@objcc
||
cc
;
end
def
objcc
;
@objcc
||
cc
;
end
def
objc
cflags
;
@objccflags
.
empty?
?
cflags
:
@objc
cflags
;
end
def
objc
flags
;
!
@objcflags
||
@objcflags
.
empty?
?
cflags
:
@obj
cflags
;
end
def
asm
;
@asm
||
cc
;
end
def
asm
;
@asm
||
cc
;
end
def
asmflags
;
@asmflags
.
empty?
?
cflags
:
@asmflags
;
end
def
asmflags
;
!
@asmflags
||
@asmflags
.
empty?
?
cflags
:
@asmflags
;
end
def
ld
;
@ld
||
cc
;
end
def
ld
;
@ld
||
cc
;
end
...
...
tasks/mruby_gem_spec.rake
View file @
d7668c5f
...
@@ -147,7 +147,7 @@ __EOF__
...
@@ -147,7 +147,7 @@ __EOF__
build
.
compile_mruby
f
,
rbfiles
,
"gem_mrblib_irep_
#{
funcname
}
"
unless
rbfiles
.
empty?
build
.
compile_mruby
f
,
rbfiles
,
"gem_mrblib_irep_
#{
funcname
}
"
unless
rbfiles
.
empty?
f
.
puts
"void mrb_
#{
funcname
}
_gem_init(mrb_state *mrb);"
f
.
puts
"void mrb_
#{
funcname
}
_gem_init(mrb_state *mrb);"
f
.
puts
"void GENERATED_TMP_mrb_
#{
funcname
}
_gem_init(mrb_state *mrb) {"
f
.
puts
"void GENERATED_TMP_mrb_
#{
funcname
}
_gem_init(mrb_state *mrb) {"
f
.
puts
" mrb_
#{
funcname
}
_gem_init(mrb);"
unless
objs
.
empty?
f
.
puts
" mrb_
#{
funcname
}
_gem_init(mrb);"
if
objs
!=
[
"
#{
build_dir
}
/gem_init.o"
]
f
.
puts
<<
__EOF__
unless
rbfiles
.
empty?
f
.
puts
<<
__EOF__
unless
rbfiles
.
empty?
mrb_load_irep(mrb, gem_mrblib_irep_
#{
funcname
}
);
mrb_load_irep(mrb, gem_mrblib_irep_
#{
funcname
}
);
if (mrb->exc) {
if (mrb->exc) {
...
...
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