Main: build with Tiny C Compiler

This commit is contained in:
Alex Kotov 2022-06-06 05:42:18 +03:00
parent ad8219addc
commit 28e0cf6a54
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
3 changed files with 10 additions and 3 deletions

View File

@ -12,8 +12,11 @@ jobs:
strategy:
matrix:
# TODO: something is wrong with TCC, Multiboot 2 info tag struct size
#cc: ['gcc', 'clang', 'tcc']
cc: ['gcc', 'clang']
cc:
- exe: 'gcc'
- exe: 'clang'
- exe: 'tcc'
flags: '--without-multiboot2'
opt: ['', '-O0', '-O3']
steps:
- uses: actions/checkout@v2
@ -22,7 +25,7 @@ jobs:
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure --enable-tests --enable-tests-python CC='${{matrix.cc}}' CFLAGS='${{matrix.opt}}'
run: ./configure --enable-tests --enable-tests-python ${{matrix.cc.flags}} CC='${{matrix.cc.exe}}' CFLAGS='${{matrix.opt}}'
- name: make
run: make
- name: check

View File

@ -4,7 +4,9 @@
#include <assert.h>
#ifndef __USE_POSIX2
#define __USE_POSIX2
#endif
#include <stdio.h>
static const char output1[] =

View File

@ -4,7 +4,9 @@
#include <assert.h>
#ifndef __USE_POSIX2
#define __USE_POSIX2
#endif
#include <stdio.h>
static const char output1[] =