diff options
author | Michael Forney <mforney@mforney.org> | 2019-04-26 00:36:06 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-04-26 18:24:19 -0700 |
commit | bdefdc936a6c2be8f6c814c82ef9b36a432051e4 (patch) | |
tree | 65ab15fbab5c5d794ace7d91813362c56577aac7 /.builds/freebsd.yml | |
parent | abc80f19c55ae45742cf7d2bc54c2c4a4dc8236c (diff) |
Replace config.def.h with a configure script
Diffstat (limited to '.builds/freebsd.yml')
-rw-r--r-- | .builds/freebsd.yml | 39 |
1 files changed, 10 insertions, 29 deletions
diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml index 8eb359d..280081a 100644 --- a/.builds/freebsd.yml +++ b/.builds/freebsd.yml @@ -1,33 +1,14 @@ image: freebsd/latest sources: - - https://git.sr.ht/~mcf/cc - - git://c9x.me/qbe.git +- https://git.sr.ht/~mcf/cc +- git://c9x.me/qbe.git packages: - - gmake +- gmake +environment: + PATH: $HOME/qbe/obj:$PATH tasks: - - build: | - gmake -C qbe - cd cc - cat >config.h <<EOF - static char *startfiles[] = {"-l", ":crt1.o", "-l", ":crti.o"}; - static char *endfiles[] = {"-l", ":crtn.o", "-l", "c"}; - static char *preprocesscmd[] = { - "cpp", "-P", - "-U", "__GNUC__", "-D", "__GNUC__=3", - "-U", "__GNUC_MINOR__", "-D", "__GNUC_MINOR__=3", - "-D", "__asm(x)=", - "-D", "__attribute__(x)=", - "-D", "__inline=", - "-D", "_Pragma(x)=", - "-D", "_Nullable=", - "-D", "_Nonnull=", - "-D", "_XLOCALE_INLINE=static inline", - "-D", "__NO_TLS", - }; - static char *compilecmd[] = {"cc-qbe"}; - static char *codegencmd[] = {"qbe"}; - static char *assemblecmd[] = {"as"}; - static char *linkcmd[] = {"ld", "-L", "/usr/lib", "--dynamic-linker", "/libexec/ld-elf.so.1"}; - EOF - echo 'CFLAGS=-Wno-parentheses -Wno-switch' >config.mk - PATH=$HOME/qbe/obj:$PATH make all check bootstrap +- build: | + gmake -C qbe + cd cc + ./configure + make all check bootstrap |