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
758cdd5b
Commit
758cdd5b
authored
Apr 08, 2014
by
take_cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add MRuby::Build#disable_cxx_exception to force C++ ABI disable.
parent
b26ca1b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
tasks/mruby_build.rake
tasks/mruby_build.rake
+6
-1
No files found.
tasks/mruby_build.rake
View file @
758cdd5b
...
...
@@ -82,6 +82,7 @@ module MRuby
@gems
,
@libmruby
=
MRuby
::
Gem
::
List
.
new
,
[]
@build_mrbtest_lib_only
=
false
@cxx_abi_enabled
=
false
@cxx_exception_disabled
=
false
MRuby
.
targets
[
@name
]
=
self
end
...
...
@@ -95,12 +96,16 @@ module MRuby
@mrbc
.
compile_options
+=
' -g'
end
def
disable_cxx_exception
@cxx_exception_disabled
=
true
end
def
cxx_abi_enabled?
@cxx_abi_enabled
end
def
enable_cxx_abi
return
if
@cxx_abi_enabled
return
if
@cxx_
exception_disabled
or
@cxx_
abi_enabled
compilers
.
each
{
|
c
|
c
.
defines
+=
%w(MRB_ENABLE_CXX_EXCEPTION)
}
linker
.
command
=
cxx
.
command
@cxx_abi_enabled
=
true
...
...
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