1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 00:15:58 +01:00

Start building Unity & Fixture with C89 flags in continuous integration

Remove stdint.h from the C89 build due to -pedantic warnings from type
  'long long' and constants like UINTPTR_MAX = 18446744073709551615ULL
This commit is contained in:
jsalling
2016-08-27 16:15:00 -05:00
parent 8beb9715be
commit da7e375cf9
2 changed files with 6 additions and 4 deletions

View File

@@ -7,3 +7,4 @@ script:
- make -s
- cd ../extras/fixture/test && rake ci
- make -s default noStdlibMalloc
- make -s C89

View File

@@ -38,10 +38,11 @@ noStdlibMalloc: $(BUILD_DIR)
@ echo "build with noStdlibMalloc"
./$(TARGET)
C89: ../build/
clang $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET) -m32 -std=c89
clang $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET) -m32 \
-D UNITY_EXCLUDE_STDLIB_MALLOC -std=c89 ; ./$(TARGET)
C89: CFLAGS += -D UNITY_EXCLUDE_STDINT_H # C89 did not have type 'long long', <stdint.h>
C89: $(BUILD_DIR)
$(CC) $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET) -std=c89 && ./$(TARGET)
$(CC) $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET) -D UNITY_EXCLUDE_STDLIB_MALLOC -std=c89
./$(TARGET)
clangEverything:
clang $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET) -Weverything