Skip to content

Commit

Permalink
Merge pull request #2896 from sagmor/custom-gcc-version
Browse files Browse the repository at this point in the history
Add ability to change compiler versions for androideabi
  • Loading branch information
matz committed Jul 23, 2015
2 parents 0f5386d + f017044 commit 156dd27
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks/toolchains/androideabi.rake
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ MRuby::Toolchain.new(:androideabi) do |conf|
ANDROID_TARGET_ARCH = ENV['ANDROID_TARGET_ARCH'] || DEFAULT_ANDROID_TARGET_ARCH
ANDROID_TARGET_ARCH_ABI = ENV['ANDROID_TARGET_ARCH_ABI'] || DEFAULT_ANDROID_TARGET_ARCH_ABI
ANDROID_TOOLCHAIN = ENV['ANDROID_TOOLCHAIN'] || DEFAULT_ANDROID_TOOLCHAIN
GCC_VERSION = ENV['GCC_VERSION'] || GCC_VERSION
CLANG_VERSION = ENV['CLANG_VERSION'] || CLANG_VERSION

case ANDROID_TARGET_ARCH.downcase
when 'arch-arm', 'arm' then
Expand Down Expand Up @@ -74,9 +76,9 @@ MRuby::Toolchain.new(:androideabi) do |conf|
else
# Any other architecture are not supported by Android NDK.
end
path_to_toolchain += DEFAULT_GCC_VERSION + '/prebuilt/' + HOST_PLATFORM
path_to_toolchain += GCC_VERSION + '/prebuilt/' + HOST_PLATFORM
else
path_to_toolchain += 'llvm-' + DEFAULT_CLANG_VERSION + '/prebuilt/' + HOST_PLATFORM
path_to_toolchain += 'llvm-' + CLANG_VERSION + '/prebuilt/' + HOST_PLATFORM
end
else
path_to_toolchain = ANDROID_STANDALONE_TOOLCHAIN
Expand Down

0 comments on commit 156dd27

Please sign in to comment.