提交 4742b5d7 编写于 作者: S Scott Vokes

Change gcc.yml default to gcc_32.yml (explicitly compile for 32-bit target)

上级 d0c3f24f
......@@ -25,7 +25,7 @@ task :prepare_for_tests => TEMP_DIRS
include RakefileHelpers
# Load default configuration, for now
DEFAULT_CONFIG_FILE = 'gcc.yml'
DEFAULT_CONFIG_FILE = 'gcc_32.yml'
configure_toolchain(DEFAULT_CONFIG_FILE)
desc "Test unity with its own unit tests"
......
......@@ -72,11 +72,7 @@ typedef _US64 _U_SINT;
//-------------------------------------------------------
#ifndef UNITY_POINTER_WIDTH
#ifdef UNITY_SUPPORT_64
#define UNITY_POINTER_WIDTH (64)
#else
#define UNITY_POINTER_WIDTH (32)
#endif
#endif /* UNITY_POINTER_WIDTH */
#if (UNITY_POINTER_WIDTH == 32)
......
......@@ -5,6 +5,7 @@ compiler:
build_path: &build_path 'build/'
options:
- '-c'
- '-m32'
- '-Wall'
- '-Wno-address'
- '-std=c99'
......@@ -18,7 +19,6 @@ compiler:
defines:
prefix: '-D'
items:
- UNITY_SUPPORT_64
- UNITY_INCLUDE_DOUBLE
- UNITY_SUPPORT_TEST_CASES
object_files:
......@@ -29,6 +29,7 @@ linker:
path: gcc
options:
- -lm
- '-m32'
includes:
prefix: '-I'
object_files:
......@@ -40,4 +41,4 @@ linker:
destination: *build_path
colour: true
:unity:
:plugins: []
\ No newline at end of file
:plugins: []
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册