Updated to autodetect 32 or 64 bit and use proper gcc

This commit is contained in:
Greg Williams
2014-07-29 12:28:21 -07:00
parent 78db7b19e6
commit ff21566501

View File

@ -24,8 +24,13 @@ task :prepare_for_tests => TEMP_DIRS
include RakefileHelpers
# Load default configuration, for now
# 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"