summaryrefslogtreecommitdiffhomepage
path: root/tasks/mruby_gem_spec.rake
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/mruby_gem_spec.rake')
-rw-r--r--tasks/mruby_gem_spec.rake10
1 files changed, 6 insertions, 4 deletions
diff --git a/tasks/mruby_gem_spec.rake b/tasks/mruby_gem_spec.rake
index ae6d46b95..9f28b2b6a 100644
--- a/tasks/mruby_gem_spec.rake
+++ b/tasks/mruby_gem_spec.rake
@@ -33,7 +33,7 @@ module MRuby
@name = name
@build = MRuby.build
@dir = Gem.processing_path
- @cflags = []
+ @cflags, @cxxflags, @objcflags, @asmflags = [], [], [], []
@mruby_cflags, @mruby_ldflags, @mruby_libs = [], [], []
@mruby_includes = ["#{dir}/include"]
@rbfiles = Dir.glob("#{dir}/mrblib/*.rb")
@@ -113,9 +113,11 @@ __EOF__
obj_matcher = Regexp.new("^#{build_dir}/(.*)\\.o$")
{
'.c' => proc { |t| build.compile_c t.name, t.prerequisites.first, cflags },
- '.cpp' => proc { |t| build.compile_cxx t.name, t.prerequisites.first, cflags },
- '.m' => proc { |t| build.compile_objc t.name, t.prerequisites.first, cflags },
- '.S' => proc { |t| build.compile_asm t.name, t.prerequisites.first, cflags }
+ '.cpp' => proc { |t| build.compile_cxx t.name, t.prerequisites.first, cxxflags },
+ '.cxx' => proc { |t| build.compile_cxx t.name, t.prerequisites.first, cxxflags },
+ '.cc' => proc { |t| build.compile_cxx t.name, t.prerequisites.first, cxxflags },
+ '.m' => proc { |t| build.compile_objc t.name, t.prerequisites.first, objcflags },
+ '.S' => proc { |t| build.compile_asm t.name, t.prerequisites.first, asmflags }
}.each do |ext, compile|
rule obj_matcher => [
proc { |file|