Adding -D UNITY_OUTPUT_CHAR=putcharSpy to testing build targets

Updated clang and gcc targets. Fixed spelling of LIMITS, which breaks the
  gcc_auto_sizeof.yml build.
 Commented -Wunreachable-code, Unity won't build on OSX clang with it,
  error in unity.c:769 & 932: 'default: break;' case.
This commit is contained in:
jsalling
2015-12-21 11:39:50 -06:00
parent a3d81dfa41
commit 36e2ca192b
8 changed files with 13 additions and 5 deletions

View File

@ -28,7 +28,7 @@ compiler:
- '-Wstrict-overflow=5' - '-Wstrict-overflow=5'
- '-Wuninitialized' - '-Wuninitialized'
- '-Wunused' - '-Wunused'
- '-Wunreachable-code' # - '-Wunreachable-code'
- '-Wreturn-type' - '-Wreturn-type'
- '-Wshadow' - '-Wshadow'
- '-Wundef' - '-Wundef'
@ -57,6 +57,7 @@ compiler:
defines: defines:
prefix: '-D' prefix: '-D'
items: items:
- UNITY_OUTPUT_CHAR=putcharSpy
- UNITY_INCLUDE_DOUBLE - UNITY_INCLUDE_DOUBLE
- UNITY_SUPPORT_64 - UNITY_SUPPORT_64
- UNITY_OUTPUT_RESULTS_FILE - UNITY_OUTPUT_RESULTS_FILE
@ -65,7 +66,7 @@ compiler:
extension: '.o' extension: '.o'
destination: *build_path destination: *build_path
linker: linker:
path: gcc path: clang
options: options:
- -lm - -lm
- '-m64' - '-m64'

View File

@ -28,7 +28,7 @@ compiler:
- '-Wstrict-overflow=5' - '-Wstrict-overflow=5'
- '-Wuninitialized' - '-Wuninitialized'
- '-Wunused' - '-Wunused'
- '-Wunreachable-code' # - '-Wunreachable-code'
- '-Wreturn-type' - '-Wreturn-type'
- '-Wshadow' - '-Wshadow'
- '-Wundef' - '-Wundef'
@ -57,6 +57,7 @@ compiler:
defines: defines:
prefix: '-D' prefix: '-D'
items: items:
- UNITY_OUTPUT_CHAR=putcharSpy
- UNITY_INCLUDE_DOUBLE - UNITY_INCLUDE_DOUBLE
- UNITY_SUPPORT_TEST_CASES - UNITY_SUPPORT_TEST_CASES
- UNITY_SUPPORT_64 - UNITY_SUPPORT_64
@ -65,7 +66,7 @@ compiler:
extension: '.o' extension: '.o'
destination: *build_path destination: *build_path
linker: linker:
path: gcc path: clang
options: options:
- -lm - -lm
- '-m64' - '-m64'

View File

@ -19,6 +19,7 @@ compiler:
defines: defines:
prefix: '-D' prefix: '-D'
items: items:
- UNITY_OUTPUT_CHAR=putcharSpy
- UNITY_EXCLUDE_STDINT_H - UNITY_EXCLUDE_STDINT_H
- UNITY_EXCLUDE_LIMITS_H - UNITY_EXCLUDE_LIMITS_H
- UNITY_EXCLUDE_SIZEOF - UNITY_EXCLUDE_SIZEOF

View File

@ -19,6 +19,7 @@ compiler:
defines: defines:
prefix: '-D' prefix: '-D'
items: items:
- UNITY_OUTPUT_CHAR=putcharSpy
- UNITY_EXCLUDE_STDINT_H - UNITY_EXCLUDE_STDINT_H
- UNITY_EXCLUDE_LIMITS_H - UNITY_EXCLUDE_LIMITS_H
- UNITY_EXCLUDE_SIZEOF - UNITY_EXCLUDE_SIZEOF

View File

@ -19,6 +19,7 @@ compiler:
defines: defines:
prefix: '-D' prefix: '-D'
items: items:
- UNITY_OUTPUT_CHAR=putcharSpy
- UNITY_EXCLUDE_STDINT_H - UNITY_EXCLUDE_STDINT_H
- UNITY_INCLUDE_DOUBLE - UNITY_INCLUDE_DOUBLE
- UNITY_SUPPORT_TEST_CASES - UNITY_SUPPORT_TEST_CASES

View File

@ -19,8 +19,9 @@ compiler:
defines: defines:
prefix: '-D' prefix: '-D'
items: items:
- UNITY_OUTPUT_CHAR=putcharSpy
- UNITY_EXCLUDE_STDINT_H - UNITY_EXCLUDE_STDINT_H
- UNITY_EXCLUDE_LIMTIS_H - UNITY_EXCLUDE_LIMITS_H
- UNITY_INCLUDE_DOUBLE - UNITY_INCLUDE_DOUBLE
- UNITY_SUPPORT_TEST_CASES - UNITY_SUPPORT_TEST_CASES
- UNITY_SUPPORT_64 - UNITY_SUPPORT_64

View File

@ -32,6 +32,7 @@ compiler:
defines: defines:
prefix: '-D' prefix: '-D'
items: items:
- UNITY_OUTPUT_CHAR=putcharSpy
- UNITY_INCLUDE_DOUBLE - UNITY_INCLUDE_DOUBLE
- UNITY_SUPPORT_TEST_CASES - UNITY_SUPPORT_TEST_CASES
- UNITY_SUPPORT_64 - UNITY_SUPPORT_64

View File

@ -19,6 +19,7 @@ compiler:
defines: defines:
prefix: '-D' prefix: '-D'
items: items:
- UNITY_OUTPUT_CHAR=putcharSpy
- UNITY_EXCLUDE_MATH_H - UNITY_EXCLUDE_MATH_H
- UNITY_INCLUDE_DOUBLE - UNITY_INCLUDE_DOUBLE
- UNITY_SUPPORT_TEST_CASES - UNITY_SUPPORT_TEST_CASES