diff --git a/rakefile.rb b/rakefile.rb index 789804a..f86dea5 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 9e48659..640ebeb 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 f3072e0..f9d1318 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: []