[A] Add build with tcc to CI
This commit is contained in:
parent
c3f9f302a3
commit
bcce3c12cc
17
.drone.yml
17
.drone.yml
@ -19,6 +19,21 @@ steps:
|
|||||||
- ls
|
- ls
|
||||||
- ctest -VV
|
- 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
|
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 .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror"
|
||||||
- cmake --build . --target all
|
- cmake --build . --target all
|
||||||
- ls
|
- ls
|
||||||
- ctest -VV
|
- ctest -VV
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
### Internal
|
### Internal
|
||||||
|
|
||||||
- Fix compilation for compilers other than gcc, clang, msvc.
|
- Fix compilation for compilers other than gcc, clang, msvc.
|
||||||
|
- Add build with tcc to CI.
|
||||||
|
|
||||||
## v0.3.1
|
## v0.3.1
|
||||||
|
|
||||||
|
@ -439,7 +439,7 @@ extern "C" {
|
|||||||
#define utf8_nonnull
|
#define utf8_nonnull
|
||||||
#define utf8_pure
|
#define utf8_pure
|
||||||
#define utf8_restrict
|
#define utf8_restrict
|
||||||
#define utf8_weak
|
#define utf8_weak inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -74,7 +74,7 @@ extern "C" {
|
|||||||
#define utf8_nonnull
|
#define utf8_nonnull
|
||||||
#define utf8_pure
|
#define utf8_pure
|
||||||
#define utf8_restrict
|
#define utf8_restrict
|
||||||
#define utf8_weak
|
#define utf8_weak inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
Reference in New Issue
Block a user