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

improve default config for asan #4326

Merged
merged 6 commits into from
Oct 27, 2023
Merged

improve default config for asan #4326

merged 6 commits into from
Oct 27, 2023

Conversation

waruqi
Copy link
Member

@waruqi waruqi commented Oct 26, 2023

This fixes two things:

1) when `project.policy("build.sanitizer.address")` is true, there is no way to disable asan on a package, `add_requires("xx", { configs { asan = false } })` won't work because of the `or` (it should check for nil)

2) When asan is set to false, it won't match installed packages with asan key set to nil even though they are identical. So when asan/lto key is set to false, it will remove the asan/lto key from config
@waruqi waruqi added this to the v2.8.5 milestone Oct 27, 2023
@waruqi waruqi merged commit 1f3b314 into dev Oct 27, 2023
35 of 38 checks passed
@waruqi waruqi deleted the asan branch October 27, 2023 08:52
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