diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 14159b7..182e929 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -44,6 +44,14 @@ jobs: extra-packages: any::rcmdcheck needs: check + - name: Build with ASAN + if: runner.os == 'Linux' + run: make lib + + - name: Set ASAN_OPTIONS + if: runner.os == 'Linux' + run: echo "ASAN_OPTIONS=detect_leaks=0" >> $GITHUB_ENV + - uses: r-lib/actions/check-r-package@v2 with: upload-snapshots: true diff --git a/Makefile b/Makefile index fee0eed..3bda982 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ SRC=./src .PHONY: lib lib: clean # build the shared library version of dbc2dbf - R CMD SHLIB -o src/db2dbf.so src/*.c -fsanitize=undefined + R CMD SHLIB -o src/db2dbf.so src/*.c -fsanitize=address -fno-omit-frame-pointer .PHONY: clean clean: # clean generated files