diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a149d83..5ba70e3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/tests/test_multiboot2_header_print.c b/tests/test_multiboot2_header_print.c index fc4af8f..ccf9ed6 100644 --- a/tests/test_multiboot2_header_print.c +++ b/tests/test_multiboot2_header_print.c @@ -4,7 +4,9 @@ #include +#ifndef __USE_POSIX2 #define __USE_POSIX2 +#endif #include static const char output1[] = diff --git a/tests/test_multiboot2_info_print.c b/tests/test_multiboot2_info_print.c index 181675a..c86fe31 100644 --- a/tests/test_multiboot2_info_print.c +++ b/tests/test_multiboot2_info_print.c @@ -4,7 +4,9 @@ #include +#ifndef __USE_POSIX2 #define __USE_POSIX2 +#endif #include static const char output1[] =