mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-09-20 17:17:25 +00:00
- we only need a single gcc target now that they can autodetect the 64-bit support
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@219 bf332499-1b4d-0410-844d-d2d48d5cc64c
This commit is contained in:
+2
-2
@@ -26,6 +26,7 @@ compiler:
|
||||
defines:
|
||||
prefix: '-D'
|
||||
items:
|
||||
- 'UNITY_SUPPORT_64'
|
||||
object_files:
|
||||
prefix: '-o'
|
||||
extension: '.o'
|
||||
@@ -45,7 +46,6 @@ linker:
|
||||
extension: '.exe'
|
||||
destination: *systest_build_path
|
||||
|
||||
unsupported:
|
||||
- unity_64bit_support
|
||||
unsupported: []
|
||||
|
||||
colour: true
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
---
|
||||
compiler:
|
||||
path: gcc
|
||||
source_path: &systest_generated_path 'test/system/generated/'
|
||||
unit_tests_path: &unit_tests_path 'examples/test/'
|
||||
mocks_path: &systest_mocks_path 'test/system/generated/'
|
||||
build_path: &systest_build_path 'test/system/build/'
|
||||
options:
|
||||
- '-c'
|
||||
- '-Wall'
|
||||
- '-Wunused-parameter'
|
||||
- '-Wno-address'
|
||||
- '-std=c99'
|
||||
- '-pedantic'
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- *systest_generated_path
|
||||
- *unit_tests_path
|
||||
- *systest_mocks_path
|
||||
- 'src/'
|
||||
- 'vendor/unity/src/'
|
||||
- 'vendor/c_exception/lib/'
|
||||
- 'test/system/test_compilation/'
|
||||
- 'test/'
|
||||
defines:
|
||||
prefix: '-D'
|
||||
items:
|
||||
- UNITY_SUPPORT_64
|
||||
- UNITY_LONG_WIDTH=32
|
||||
- 'CMOCK_MEM_PTR_AS_INT=long'
|
||||
object_files:
|
||||
prefix: '-o'
|
||||
extension: '.o'
|
||||
destination: *systest_build_path
|
||||
|
||||
linker:
|
||||
path: gcc
|
||||
options:
|
||||
- -lm
|
||||
includes:
|
||||
prefix: '-I'
|
||||
object_files:
|
||||
path: *systest_build_path
|
||||
extension: '.o'
|
||||
bin_files:
|
||||
prefix: '-o'
|
||||
extension: '.exe'
|
||||
destination: *systest_build_path
|
||||
|
||||
unsupported: []
|
||||
|
||||
colour: true
|
||||
@@ -1,54 +0,0 @@
|
||||
---
|
||||
compiler:
|
||||
path: gcc
|
||||
source_path: &systest_generated_path 'test/system/generated/'
|
||||
unit_tests_path: &unit_tests_path 'examples/test/'
|
||||
mocks_path: &systest_mocks_path 'test/system/generated/'
|
||||
build_path: &systest_build_path 'test/system/build/'
|
||||
options:
|
||||
- '-c'
|
||||
- '-Wall'
|
||||
- '-Wunused-parameter'
|
||||
- '-std=c99'
|
||||
- '-Wno-address'
|
||||
- '-pedantic-errors'
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- *systest_generated_path
|
||||
- *unit_tests_path
|
||||
- *systest_mocks_path
|
||||
- 'src/'
|
||||
- 'vendor/unity/src/'
|
||||
- 'vendor/c_exception/lib/'
|
||||
- 'test/system/test_compilation/'
|
||||
- 'test/'
|
||||
defines:
|
||||
prefix: '-D'
|
||||
items:
|
||||
- 'UNITY_SUPPORT_64'
|
||||
- 'UNITY_LONG_WIDTH=64'
|
||||
- 'UNITY_POINTER_WIDTH=64'
|
||||
- 'CMOCK_MEM_PTR_AS_INT=long'
|
||||
object_files:
|
||||
prefix: '-o'
|
||||
extension: '.o'
|
||||
destination: *systest_build_path
|
||||
|
||||
linker:
|
||||
path: gcc
|
||||
options:
|
||||
- -lm
|
||||
includes:
|
||||
prefix: '-I'
|
||||
object_files:
|
||||
path: *systest_build_path
|
||||
extension: '.o'
|
||||
bin_files:
|
||||
prefix: '-o'
|
||||
extension: '.exe'
|
||||
destination: *systest_build_path
|
||||
|
||||
unsupported: []
|
||||
|
||||
colour: true
|
||||
@@ -7,13 +7,8 @@
|
||||
|
||||
:systest:
|
||||
:types: |
|
||||
#if (UNITY_LONG_WIDTH == 32)
|
||||
typedef unsigned long long TEST64;
|
||||
#elif (UNITY_LONG_WIDTH == 64)
|
||||
typedef unsigned long TEST64;
|
||||
#else
|
||||
#error This Test Should Not Be Run Unless You Have 64 Bit Support Enabled
|
||||
#endif
|
||||
#include "unity_internals.h"
|
||||
typedef _UU64 TEST64;
|
||||
|
||||
:mockable: |
|
||||
TEST64 foo(TEST64 a);
|
||||
|
||||
Reference in New Issue
Block a user