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
80a7655b
Unverified
Commit
80a7655b
authored
Jan 10, 2021
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Jan 10, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5271 from shuujii/fix-build-error-in-cross-build-with-presym
Fix build error in cross-build with presym
parents
dc5ade37
f80d5ece
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
build_config/cross-32bit.rb
build_config/cross-32bit.rb
+1
-1
lib/mruby/build.rb
lib/mruby/build.rb
+5
-5
tasks/presym.rake
tasks/presym.rake
+3
-1
No files found.
build_config/cross-32bit.rb
View file @
80a7655b
# Define cross build settings
MRuby
::
CrossBuild
.
new
(
'cross-32bit'
)
do
|
conf
|
toolchain
:gcc
conf
.
toolchain
:gcc
conf
.
cc
.
flags
<<
"-m32"
conf
.
linker
.
flags
<<
"-m32"
...
...
lib/mruby/build.rb
View file @
80a7655b
...
...
@@ -515,11 +515,7 @@ EOS
unless
mrbcfile_external?
||
MRuby
.
targets
[
'host'
]
# add minimal 'host'
MRuby
::
Build
.
new
(
'host'
)
do
|
conf
|
if
ENV
[
'VisualStudioVersion'
]
||
ENV
[
'VSINSTALLDIR'
]
toolchain
:visualcpp
else
toolchain
:gcc
end
conf
.
toolchain
conf
.
build_mrbc_exec
conf
.
disable_libmruby
conf
.
disable_presym
...
...
@@ -527,6 +523,10 @@ EOS
end
end
def
mrbcfile
mrbcfile_external?
?
super
:
MRuby
::
targets
[
'host'
].
mrbcfile
end
def
run_test
@test_runner
.
runner_options
<<
verbose_flag
mrbtest
=
exefile
(
"
#{
build_dir
}
/bin/mrbtest"
)
...
...
tasks/presym.rake
View file @
80a7655b
mrbtest
=
"
#{
MRuby
::
Build
.
install_dir
}
/mrbtest"
all_prerequisites
=
->
(
task_name
,
prereqs
)
do
Rake
::
Task
[
task_name
].
prerequisites
.
each
do
|
prereq_name
|
next
if
prereqs
[
prereq_name
]
...
...
@@ -18,13 +19,14 @@ MRuby.each_target do |build|
prereqs
=
{}
pps
=
[]
mrbtest
=
"
#{
build
.
class
.
install_dir
}
/mrbtest
"
build_dir
=
"
#{
build
.
build_dir
}
/
"
mrbc_build_dir
=
"
#{
build
.
mrbc_build
.
build_dir
}
/"
if
build
.
mrbc_build
build
.
products
.
each
do
|
product
|
all_prerequisites
.
(
product
,
prereqs
)
unless
product
==
mrbtest
end
prereqs
.
each_key
do
|
prereq
|
next
unless
File
.
extname
(
prereq
)
==
build
.
exts
.
object
next
unless
prereq
.
start_with?
(
build_dir
)
next
if
mrbc_build_dir
&&
prereq
.
start_with?
(
mrbc_build_dir
)
pps
<<
prereq
.
ext
(
build
.
exts
.
preprocessed
)
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