mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #4226 from dearblue/fix-build-cxx-exc
Build fails when set `conf.build_dir=<rel path>` and `conf.enable_cxx_exception`
This commit is contained in:
+1
-3
@@ -162,8 +162,6 @@ module MRuby
|
||||
end
|
||||
|
||||
def compile_as_cxx src, cxx_src, obj = nil, includes = []
|
||||
src = File.absolute_path src
|
||||
cxx_src = File.absolute_path cxx_src
|
||||
obj = objfile(cxx_src) if obj.nil?
|
||||
|
||||
file cxx_src => [src, __FILE__] do |t|
|
||||
@@ -175,7 +173,7 @@ module MRuby
|
||||
#ifndef MRB_ENABLE_CXX_ABI
|
||||
extern "C" {
|
||||
#endif
|
||||
#include "#{src}"
|
||||
#include "#{File.absolute_path src}"
|
||||
#ifndef MRB_ENABLE_CXX_ABI
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user