From ff2156650105daa1db91be4c53e24fcb0d138e1f Mon Sep 17 00:00:00 2001 From: Greg Williams Date: Tue, 29 Jul 2014 12:28:21 -0700 Subject: [PATCH] Updated to autodetect 32 or 64 bit and use proper gcc --- rakefile.rb => Rakefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) rename rakefile.rb => Rakefile (84%) diff --git a/rakefile.rb b/Rakefile similarity index 84% rename from rakefile.rb rename to Rakefile index bdb4931..8364ef5 100644 --- a/rakefile.rb +++ b/Rakefile @@ -24,8 +24,13 @@ task :prepare_for_tests => TEMP_DIRS include RakefileHelpers -# Load default configuration, for now -DEFAULT_CONFIG_FILE = 'gcc_32.yml' +# Load proper GCC as defult configuration +if 1.size == 8 # 8 bytes => 64-bits + DEFAULT_CONFIG_FILE = 'gcc_64.yml' +else # Assume 32-bit otherwise + DEFAULT_CONFIG_FILE = 'gcc_32.yml' +end + configure_toolchain(DEFAULT_CONFIG_FILE) desc "Test unity with its own unit tests"