summaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-04-06 13:10:28 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-04-06 17:25:53 +0900
commit58ab97e3008f1033db3ea540eb41617dc4875591 (patch)
treee50c0a507ecf149a6b2285aa3950288092bd3940 /tasks
parente19346fd8bad5b745e8923baf16c1c3173aee2aa (diff)
downloadmruby-58ab97e3008f1033db3ea540eb41617dc4875591.tar.gz
mruby-58ab97e3008f1033db3ea540eb41617dc4875591.zip
mruby-config: add `--cc` and `--ld` options.
* `--cc` print compiler name * `--ld` print linker name
Diffstat (limited to 'tasks')
-rw-r--r--tasks/libmruby.rake3
1 files changed, 3 insertions, 0 deletions
diff --git a/tasks/libmruby.rake b/tasks/libmruby.rake
index 8cdb4ca2e..9a7a57ff7 100644
--- a/tasks/libmruby.rake
+++ b/tasks/libmruby.rake
@@ -16,6 +16,9 @@ MRuby.each_target do
open(t.name, 'w') do |f|
f.puts "MRUBY_CFLAGS = #{cc.all_flags}"
+ f.puts "MRUBY_CC = #{cc.command}"
+ f.puts "MRUBY_LD = #{linker.command}"
+
libgems = gems.reject{|g| g.bin?}
gem_flags = libgems.map {|g| g.linker.flags }
gem_library_paths = libgems.map {|g| g.linker.library_paths }