mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-27 18:24:27 +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:
@@ -7,3 +7,4 @@ script:
|
|||||||
- make -s
|
- make -s
|
||||||
- cd ../extras/fixture/test && rake ci
|
- cd ../extras/fixture/test && rake ci
|
||||||
- make -s default noStdlibMalloc
|
- make -s default noStdlibMalloc
|
||||||
|
- make -s C89
|
||||||
|
|||||||
@@ -38,10 +38,11 @@ noStdlibMalloc: $(BUILD_DIR)
|
|||||||
@ echo "build with noStdlibMalloc"
|
@ echo "build with noStdlibMalloc"
|
||||||
./$(TARGET)
|
./$(TARGET)
|
||||||
|
|
||||||
C89: ../build/
|
C89: CFLAGS += -D UNITY_EXCLUDE_STDINT_H # C89 did not have type 'long long', <stdint.h>
|
||||||
clang $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET) -m32 -std=c89
|
C89: $(BUILD_DIR)
|
||||||
clang $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET) -m32 \
|
$(CC) $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET) -std=c89 && ./$(TARGET)
|
||||||
-D UNITY_EXCLUDE_STDLIB_MALLOC -std=c89 ; ./$(TARGET)
|
$(CC) $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET) -D UNITY_EXCLUDE_STDLIB_MALLOC -std=c89
|
||||||
|
./$(TARGET)
|
||||||
|
|
||||||
clangEverything:
|
clangEverything:
|
||||||
clang $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET) -Weverything
|
clang $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET) -Weverything
|
||||||
|
|||||||
Reference in New Issue
Block a user