Skip to content

Commit

Permalink
CI fixes (#4)
Browse files Browse the repository at this point in the history
* Update CI

* Remove my_strerror

* Fix path

* Add my_strerror back

* Touch gcc/cp/parse.c
  • Loading branch information
AngheloAlf authored Jun 6, 2024
1 parent f3a3921 commit fcd429a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build

on: [push]
on: [push, pull_request]

jobs:
build:
Expand All @@ -24,7 +24,7 @@ jobs:

name: Building gcc for ${{ matrix.TARGET.OS }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies (Ubuntu)
shell: bash
Expand All @@ -39,8 +39,11 @@ jobs:
- name: Make
shell: bash
run: |
run: | # The generated `c-parse.c` is already commited on the repo, so we touch it to avoid regenerating it (trying to build old lex/yacc files with modern tools fails)
touch gcc/c-parse.c
touch gcc/cp/parse.c
make -C gcc CFLAGS="${{ matrix.TARGET.CFLAGS }}" xgcc cc1 cc1plus cpp cccp g++
- name: Test for file
shell: bash
run: |
Expand Down
15 changes: 0 additions & 15 deletions gcc/gcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1092,22 +1092,7 @@ char *
my_strerror(e)
int e;
{
#ifdef HAVE_STRERROR

return strerror(e);

#else

static char buffer[30];
if (!e)
return "cannot access";

if (e > 0 && e < sys_nerr)
return sys_errlist[e];

sprintf (buffer, "Unknown error %d", e);
return buffer;
#endif
}

static char *
Expand Down

0 comments on commit fcd429a

Please sign in to comment.