mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-19 13:28:35 +08:00
Updated to autodetect 32 or 64 bit and use proper gcc
This commit is contained in:
@ -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"
|
Reference in New Issue
Block a user