The ODR detection in initialization-bug.cc now works on Darwin (due to the recently enabled "live globals" on-by-default), but only if the deployment target is 10.11 or higher. Let's adjust the testcases.
Details
Details
- Reviewers
kcc eugenis zaks.anna rnk - Commits
- rGd692ea1e87df: [asan] Specialize the initialization-bug.cc testcase for Darwin (it needs a…
rCRT287581: [asan] Specialize the initialization-bug.cc testcase for Darwin (it needs a…
rL287581: [asan] Specialize the initialization-bug.cc testcase for Darwin (it needs a…
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Rather than duplicating the test, maybe we should add a lit substitution that expands to 10.11 deployment target?
Comment Actions
If I add "REQUIRES: osx10.11" the test won't be run on non-OSX platforms. Are you suggesting something else?
Comment Actions
I'm suggesting this kind of thing:
// RUN: %clangxx_asan %mac_min_target_10.11 -O0 %s %p/../Helpers/initialization-bug-extra2.cc -o %t-INIT-ORDER-EXE ... // UNSUPPORTED: osx-no-ld64-live_support
lit.common.cfg:
... config.available_features.add('osx-ld64-live_support') config.substitutions.append( ("%mac_min_target_10.11", "-mmacosx-version-min=10.11") )