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
2063bee7
Commit
2063bee7
authored
May 01, 2014
by
take_cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove use of define_singleton_method.
parent
41dbcf7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tasks/toolchains/gcc.rake
tasks/toolchains/gcc.rake
+4
-3
No files found.
tasks/toolchains/gcc.rake
View file @
2063bee7
...
...
@@ -30,10 +30,11 @@ MRuby::Toolchain.new(:gcc) do |conf|
end
[[
conf
.
cc
,
'c'
],
[
conf
.
cxx
,
'c++'
]].
each
do
|
cc
,
lang
|
cc
.
define_singleton_method
(
:header_search_paths
)
do
cc
.
instance_variable_set
:@header_search_language
,
lang
def
cc
.
header_search_paths
if
@header_search_command
!=
command
result
=
`echo |
#{
build
.
filename
command
}
-x
#{
lang
}
-Wp,-v - -fsyntax-only 2>&1`
result
=
`echo |
#{
command
}
-x
#{
lang
}
-Wp,-v - -fsyntax-only 2>&1`
if
$?
.
exitstatus
!=
0
result
=
`echo |
#{
build
.
filename
command
}
-x
#{
@header_search_language
}
-Wp,-v - -fsyntax-only 2>&1`
result
=
`echo |
#{
command
}
-x
#{
@header_search_language
}
-Wp,-v - -fsyntax-only 2>&1`
if
$?
.
exitstatus
!=
0
return
include_paths
if
$?
.
exitstatus
!=
0
@frameworks
=
[]
...
...
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