Commit e2bb5ce0 authored by KOBAYASHI Shuji's avatar KOBAYASHI Shuji

Refer also CXX and CC env vars as linker command in gcc and clang toolchain

ref #4292
parent 06dae1a9
......@@ -5,5 +5,5 @@ MRuby::Toolchain.new(:clang) do |conf, _params|
cc.command = ENV['CC'] || 'clang'
end
conf.cxx.command = ENV['CXX'] || 'clang++'
conf.linker.command = ENV['LD'] || 'clang'
conf.linker.command = ENV['LD'] || ENV['CXX'] || ENV['CC'] || 'clang'
end
......@@ -20,7 +20,7 @@ MRuby::Toolchain.new(:gcc) do |conf, _params|
end
conf.linker do |linker|
linker.command = ENV['LD'] || 'gcc'
linker.command = ENV['LD'] || ENV['CXX'] || ENV['CC'] || 'gcc'
linker.flags = [ENV['LDFLAGS'] || %w()]
linker.libraries = %w(m)
linker.library_paths = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment