The plugin support detection is broken when ld.bfd supports plugins but there is no ld.gold. The script tries to call GOLD_EXECUTABLE-NOTFOUND and does not handle the resulting exception. This patch handles such cases.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/test/lit.common.cfg.py | ||
---|---|---|
413 | Hmm, it would be nice if we avoided making the subprocess call in the first place if CMake found no gold executable. This also doesn't look like the only place to make this mistake either, some other places in the lit config (e.g. is_gold_linker_available() ) seem to be treating it as equal false if it is unset, but that's clearly not what will happen from what we see here. Perhaps we should consider checking the validity of the value passed through from CMake in the .cfg.in and convert the -NOTFOUNDs to Nones? |
Hmm, it would be nice if we avoided making the subprocess call in the first place if CMake found no gold executable. This also doesn't look like the only place to make this mistake either, some other places in the lit config (e.g. is_gold_linker_available() ) seem to be treating it as equal false if it is unset, but that's clearly not what will happen from what we see here.
Perhaps we should consider checking the validity of the value passed through from CMake in the .cfg.in and convert the -NOTFOUNDs to Nones?