This makes the test introduced in 537f5483fe4e more robust with respect
to the actual version number. The previous regex restricted the version
to start with a leading 1 which was overly restrictive.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lld/test/lit.cfg.py | ||
---|---|---|
86 | I already made the regex less strict, if we can leave it as-is that works for us. |
Comment Actions
I'd suggest overridding the version field with getenv("LLD_VERSION"). See ELF/SyntheticSections.cpp:getVersion.
A mechanism allowing easy cross-version comparison is useful.
lld/test/lit.cfg.py | ||
---|---|---|
86 | If we override the behavior with an environment variable, the lit substitution can be removed. |
@ruiu has pushed back against using substitutions previously (in D77086). Could we just make the regex more flexible?