diff --git a/.drone.yml b/.drone.yml index 528678b..ab02972 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,6 +19,21 @@ steps: - ls - ctest -VV + - name: test-tcc-compiler + image: alpine + commands: + - apk add gcc g++ cmake make binutils-gold tcc + - ls + - uname -a + - mkdir -p build + - cd build + # Tests with wchar don't pass + - cmake .. -DCMAKE_C_COMPILER=/usr/bin/tcc -DFORT_ENABLE_WCHAR=OFF + - cmake --build . --target libfort_test_dev + - ./tests/libfort_test_dev + - cmake --build . --target libfort_test + - ./tests/libfort_test + --- kind: pipeline @@ -60,4 +75,4 @@ steps: - cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror" - cmake --build . --target all - ls - - ctest -VV \ No newline at end of file + - ctest -VV diff --git a/ChangeLog.md b/ChangeLog.md index da12e74..dfc14c3 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -7,6 +7,7 @@ ### Internal - Fix compilation for compilers other than gcc, clang, msvc. +- Add build with tcc to CI. ## v0.3.1 diff --git a/lib/fort.c b/lib/fort.c index 5153a33..1fefa4c 100644 --- a/lib/fort.c +++ b/lib/fort.c @@ -439,7 +439,7 @@ extern "C" { #define utf8_nonnull #define utf8_pure #define utf8_restrict -#define utf8_weak +#define utf8_weak inline #endif #ifdef __cplusplus diff --git a/src/utf8.h b/src/utf8.h index 005e427..b1ec66e 100644 --- a/src/utf8.h +++ b/src/utf8.h @@ -74,7 +74,7 @@ extern "C" { #define utf8_nonnull #define utf8_pure #define utf8_restrict -#define utf8_weak +#define utf8_weak inline #endif #ifdef __cplusplus