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:
Yukihiro "Matz" Matsumoto
2019-01-15 11:00:05 +09:00
committed by GitHub
+1 -3
View File
@@ -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