diff --git a/rakefile.rb b/rakefile.rb index 789804ae07ec26b8ee63fda527e7952525d27655..f86dea55099dd480ea20629237730f83182f483e 100644 --- a/rakefile.rb +++ b/rakefile.rb @@ -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" diff --git a/src/unity_internals.h b/src/unity_internals.h index 9e48659cb0e583c8b725f96eb1e16c5004d2df1c..640ebeb4b0ef068410521c1f29af35b6d493d212 100644 --- a/src/unity_internals.h +++ b/src/unity_internals.h @@ -155,6 +155,10 @@ typedef _US64 _U_SINT; // Pointer Support //------------------------------------------------------- +#ifndef UNITY_POINTER_WIDTH +#define UNITY_POINTER_WIDTH (32) +#endif /* UNITY_POINTER_WIDTH */ + #if (UNITY_POINTER_WIDTH == 32) typedef _UU32 _UP; #define UNITY_DISPLAY_STYLE_POINTER UNITY_DISPLAY_STYLE_HEX32 diff --git a/targets/gcc.yml b/targets/gcc_32.yml similarity index 89% rename from targets/gcc.yml rename to targets/gcc_32.yml index f3072e05ba5297c2296b5e48d804b85ed4f65d94..f9d1318187a8daf4ac4108ad8dd7cfb281e990cb 100644 --- a/targets/gcc.yml +++ b/targets/gcc_32.yml @@ -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: []