Skip to content
Snippets Groups Projects
Commit 10f16a41 authored by Lars Kanis's avatar Lars Kanis
Browse files

let Rake::ExtensionCompiler detect the cross compiler prefix

parent 16a80fb8
No related branches found
No related tags found
No related merge requests found
...@@ -17,10 +17,11 @@ STATIC_SOURCESDIR = COMPILE_HOME + 'sources' ...@@ -17,10 +17,11 @@ STATIC_SOURCESDIR = COMPILE_HOME + 'sources'
STATIC_BUILDDIR = COMPILE_HOME + 'builds' STATIC_BUILDDIR = COMPILE_HOME + 'builds'
STATIC_INSTALLDIR = COMPILE_HOME + 'install' STATIC_INSTALLDIR = COMPILE_HOME + 'install'
RUBY_BUILD = RbConfig::CONFIG["host"] RUBY_BUILD = RbConfig::CONFIG["host"]
CROSS_PREFIX = if RUBY_PLATFORM.include?( 'darwin' ) CROSS_PREFIX = begin
'i386-mingw32' Rake::ExtensionCompiler.mingw_host
else rescue => err
'i586-mingw32msvc' $stderr.puts "Cross-compilation disabled -- %s" % [ err.message ]
'unknown'
end end
NUM_CPUS = if File.exist?('/proc/cpuinfo') NUM_CPUS = if File.exist?('/proc/cpuinfo')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment