builder: make sure -fshort-enums is used consistently

The main change is in building the libraries, where -fshort-enums was
passed on RISC-V while other C files weren't compiled with this setting.

Note: the test already passed before this change, but it seems like a
good idea to explicitly test for enum size consistency.
There is also not a particular reason not to pass -fshort-enums on
RISC-V. Perhaps it's better to do it there too (on baremetal targets
that don't have to worry about binary compatibility).
This commit is contained in:
Ayke van Laethem
2020-04-05 18:19:26 +02:00
committed by Ayke
parent 8333c171f4
commit 639ec1e6ee
7 changed files with 13 additions and 2 deletions
+2
View File
@@ -134,6 +134,8 @@ extern int globalUnionSize;
extern option_t globalOption;
extern bitfield_t globalBitfield;
extern int smallEnumWidth;
// test duplicate definitions
int add(int a, int b);
extern int global;