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
|
include RakefileHelpers
|
||||||
|
|
||||||
# Load default configuration, for now
|
# Load proper GCC as defult configuration
|
||||||
DEFAULT_CONFIG_FILE = 'gcc_32.yml'
|
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)
|
configure_toolchain(DEFAULT_CONFIG_FILE)
|
||||||
|
|
||||||
desc "Test unity with its own unit tests"
|
desc "Test unity with its own unit tests"
|
Reference in New Issue
Block a user