Skip to content

Commit

Permalink
github: enable O2 on older gcc versions
Browse files Browse the repository at this point in the history
Gets rid of odd impossible asm constraints error in likbs/string.c.
  • Loading branch information
mptre committed Aug 14, 2023
1 parent fc03abb commit 81e6dc7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ jobs:
coverity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: ./configure
- uses: vapier/coverity-scan-action@v1
- name: checkout
uses: actions/checkout@v3
- name: configure
env:
CFLAGS: -O2
run: ./configure
- name: coverity
uses: vapier/coverity-scan-action@v1
with:
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: test
env:
CC: gcc
CFLAGS: -Werror
CFLAGS: -O2 -Werror
run: |
# Skip pedantic due to compiler being ancient.
./configure
Expand Down

0 comments on commit 81e6dc7

Please sign in to comment.