Skip to content

Commit

Permalink
Add github msys2 workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelforney committed Mar 25, 2024
1 parent 3bd0a5f commit f7832aa
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on: push
jobs:
build:
runs-on: windows-latest
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: msys
install: gcc make
- uses: actions/checkout@v4
- shell: msys2 {0}
run: |
./configure
make all check bootstrap
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ case "$target" in
endfiles='"-l", "c", "-l", ":crtn.o"'
defines='"-D", "__builtin_stdarg_start(ap, last)=__builtin_va_start(ap, last)"'
;;
*-*msys*)
*-msys*)
startfiles='"-l", ":crt0.o"'
endfiles='"-l", "c", "-l", "msys-2.0", "-l", "kernel32"'
;;
Expand Down
1 change: 1 addition & 0 deletions pp.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ next(void)
tok = *t;
if (tok.kind == TIDENT)
keyword(&tok);
fprintf(stderr, "token=%d %s\n", tok.kind, tokstr[t->kind]);
}

bool
Expand Down
1 change: 1 addition & 0 deletions scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ ident(struct scanner *s)
s->usebuf = true;
while (isalnum(s->chr) || s->chr == '_')
nextchar(s);
fprintf(stderr, "ident='%.*s'\n", (int)s->buf.len, s->buf.str);

return TIDENT;
}
Expand Down

0 comments on commit f7832aa

Please sign in to comment.