cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit f76b45f113b7bf4940e0e87c5a2736e649bb2814
parent 31c2d5aa28eed34dc6949db828c1ae9a81203740
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 29 May 2019 16:42:01 -0700

Test full bootstrap on OpenBSD after some patches

Diffstat:
A.builds/openbsd.diff | 22++++++++++++++++++++++
M.builds/openbsd.yml | 8++++----
2 files changed, 26 insertions(+), 4 deletions(-)

diff --git a/.builds/openbsd.diff b/.builds/openbsd.diff @@ -0,0 +1,22 @@ +diff --git endian.h endian.h +index 3b077cd9295..cb6948d3fec 100644 +--- endian.h ++++ endian.h +@@ -31,6 +31,8 @@ + #include <sys/_types.h> + #endif + ++#ifdef __GNUC__ ++ + static __inline __uint16_t + __swap16md(__uint16_t _x) + { +@@ -55,6 +57,8 @@ __swap64md(__uint64_t _x) + /* Tell sys/endian.h we have MD variants of the swap macros. */ + #define __HAVE_MD_SWAP + ++#endif /* __GNUC__ */ ++ + #define _BYTE_ORDER _LITTLE_ENDIAN + + #ifndef __FROM_SYS__ENDIAN diff --git a/.builds/openbsd.yml b/.builds/openbsd.yml @@ -7,11 +7,11 @@ packages: environment: PATH: $HOME/qbe/obj:$PATH tasks: +- setup: | + # avoid __asm__ on non __GNUC__ compilers + patch -d /usr/include/amd64 < cc/.builds/openbsd.diff - build: | gmake -C qbe cd cc ./configure - make all check - # OpenBSD support is not quite there (#53), so just build hello world - ./cc -o hello test/hello.c - ./hello + make all check bootstrap