Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ext/dav1d.cmd: Add -Db_lundef=false to comments #2035

Merged

Conversation

wantehchang
Copy link
Collaborator

@wantehchang wantehchang commented Feb 22, 2024

The need to use -Db_lundef=false with the sanitizers in Clang is documented in the following pages:
https://clang.llvm.org/docs/AddressSanitizer.html#usage
https://clang.llvm.org/docs/MemorySanitizer.html#usage

If -Db_sanitize= is used without -Db_lundef=false and the compiler is Clang, meson emits a warning message like this:
../tests/meson.build:31: WARNING: Trying to use address sanitizer on
Clang with b_lundef.
This will probably not work.
Try setting b_lundef to false instead.

Note: The change to ext/dav1d.cmd allows us to remove the "-v2" suffix (added in #2034) from the cache file names.

The need to use -Db_lundef=false with the sanitizers in Clang is
documented in the following pages:
https://clang.llvm.org/docs/AddressSanitizer.html#usage
https://clang.llvm.org/docs/MemorySanitizer.html#usage

If -Db_sanitize=<sanitizer> is used without -Db_lundef=false and the
compiler is Clang, meson emits a warning message like this:
  ../tests/meson.build:31: WARNING: Trying to use address sanitizer on
  Clang with b_lundef.
  This will probably not work.
  Try setting b_lundef to false instead.

Note: The change to ext/dav1d.cmd allows us to remove the "-v2" suffix
(added in AOMediaCodec#2034) from the
cache file names.
@wantehchang wantehchang requested review from jzern and vrabaud February 22, 2024 22:19
@wantehchang
Copy link
Collaborator Author

@vrabaud @jzern Please review.

@y-guyon Just FYI. Note the removal of the "-v2" suffix from the cache file names used in the Windows CI workflows.

@wantehchang wantehchang merged commit 55bfa73 into AOMediaCodec:main Feb 23, 2024
19 checks passed
@wantehchang wantehchang deleted the add-comment-about-b_lundef-false branch February 23, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants