Propagate sanitizer flags to static-library test consumers #614
Labels
No labels
bug
cli
core
docs
event
experiment
figure
invariant
metrics
oracle
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
provenance
revocation
tests
workload
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erikinkinen/AES#614
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Make the advertised ASan/UBSan build option usable by tests and other consumers of AES static libraries.
Reproduction
On unmodified baseline
6ad94c4, configure a fresh Debug build with-DAES_ENABLE_SANITIZERS=ON -DAES_BUILD_TESTS=ON, then buildaes_smoketest. Compilation succeeds but linking fails with undefined__asan_init,__asan_register_globalsand related runtime symbols.aes_enable_sanitizersmarks compile and link options PRIVATE, so static-library consumers do not receive them. The default non-sanitized build still passes.Discovered while preparing Phase 2 semantic validation after P2-02 (#85).
Steps
Done
The sanitizer option links and runs all tests without manual compiler/linker flags or disabling instrumentation. The ordinary build and exact legacy outputs continue to pass.