Unverified Commit bf922c9f authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4315 from shuujii/refer-also-CXX-and-CC-env-vars-as-linker-command

Refer also CXX and CC env vars as linker command in gcc and clang toolchain
parents 06e07cbc e2bb5ce0
......@@ -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