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
c6c632cf
Unverified
Commit
c6c632cf
authored
Feb 06, 2021
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Feb 06, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5325 from dearblue/c++-exc.2
`compile_as_cxx` should generate a path under` conf.build_dir`
parents
94d8dfed
e0d2f4e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
lib/mruby/build.rb
lib/mruby/build.rb
+1
-1
lib/mruby/core_ext.rb
lib/mruby/core_ext.rb
+4
-0
No files found.
lib/mruby/build.rb
View file @
c6c632cf
...
...
@@ -248,7 +248,7 @@ module MRuby
end
end
else
cxx_src
=
"
#{
build_dir
}
/
#{
src
.
relative_path
}
)
"
.
ext
<<
"-cxx.cxx"
cxx_src
=
"
#{
build_dir
}
/
#{
src
.
relative_path
.
to_s
.
remove_leading_parents
}
"
.
ext
<<
"-cxx.cxx"
obj
=
cxx_src
.
ext
(
@exts
.
object
)
end
...
...
lib/mruby/core_ext.rb
View file @
c6c632cf
...
...
@@ -18,6 +18,10 @@ class String
def
relative_path
relative_path_from
(
Dir
.
pwd
)
end
def
remove_leading_parents
Pathname
.
new
(
".
#{
Pathname
.
new
(
"/
#{
self
}
"
).
cleanpath
}
"
).
cleanpath
.
to_s
end
end
def
install_D
(
src
,
dst
)
...
...
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