Skip to content

Commit

Permalink
Pass the -DSANITIZE=<type> cmake option to libaom
Browse files Browse the repository at this point in the history
This is the official way to build libaom with sanitizer support:
https://aomedia.googlesource.com/aom/+/master/README.md#sanitizers
  • Loading branch information
wantehchang committed Mar 20, 2024
1 parent 4c644d5 commit edd02ee
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci-unix-static-sanitized.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ jobs:
- name: Build aom
if: steps.cache-ext.outputs.cache-hit != 'true'
working-directory: ./ext
run: ./aom.cmd
env:
CFLAGS: -fsanitize=${{ matrix.sanitizer }}
CXXFLAGS: -fsanitize=${{ matrix.sanitizer }}
LDFLAGS: -fsanitize=${{ matrix.sanitizer }}
run: >
sed -i -e 's/cmake -G Ninja \(.*\) \.\./cmake -G Ninja \1 -DSANITIZE=${{ matrix.sanitizer }} ../g' aom.cmd
./aom.cmd
- name: Build dav1d
if: steps.cache-ext.outputs.cache-hit != 'true'
working-directory: ./ext
Expand Down

0 comments on commit edd02ee

Please sign in to comment.