summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-08-26 04:16:13 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-08-26 04:16:13 -0700
commit975d670ab740c552f7f952c155aae90967d9d829 (patch)
treefdf062b56a7f1e492965e597243c60559feb1129 /Rakefile
parent26839b9c248ce7cceae6281f235e3a6e505b82f7 (diff)
parentb6ab216f970757c6f7a8edd5f141b555c2eef157 (diff)
downloadmruby-975d670ab740c552f7f952c155aae90967d9d829.tar.gz
mruby-975d670ab740c552f7f952c155aae90967d9d829.zip
Merge pull request #1490 from take-cheeze/cxx_extension
support file extension .cpp/.cxx in mrbgem and tool
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 0902cb330..c230a5f2f 100644
--- a/Rakefile
+++ b/Rakefile
@@ -41,7 +41,7 @@ depfiles = MRuby.targets['host'].bins.map do |bin|
FileUtils.rm_f t.name, { :verbose => $verbose }
FileUtils.cp t.prerequisites.first, t.name, { :verbose => $verbose }
end
-
+
install_path
end
@@ -53,7 +53,7 @@ MRuby.each_target do |target|
gem.bins.each do |bin|
exec = exefile("#{build_dir}/bin/#{bin}")
- objs = Dir.glob("#{current_dir}/tools/#{bin}/*.c").map { |f| objfile(f.pathmap("#{current_build_dir}/tools/#{bin}/%n")) }
+ objs = Dir.glob("#{current_dir}/tools/#{bin}/*.{c,cpp,cxx}").map { |f| objfile(f.pathmap("#{current_build_dir}/tools/#{bin}/%n")) }
file exec => objs + [libfile("#{build_dir}/lib/libmruby")] do |t|
gem_flags = gems.map { |g| g.linker.flags }