eld errors out at CMake step when LLVM_TARGETS_TO_BUILD contains `x86`.
Open
Nobody has claimed this yet.
cmake
enhancement
- Dominant language
- C++
- Stars
- 259
- Forks
- 84
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 72
Description
eld errors out at CMake step with the below error when LLVM_TARGETS_TO_BUILD contains x86 as one of the targets:
CMake Error at tools/eld/lib/Target/CMakeLists.txt:28 (add_subdirectory):
add_subdirectory given source X86 which is not an existing directory.
The error happens because eld expects the target name to be X86_64 instead of X86.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect tools/eld/lib/Target/CMakeLists.txt around line 28 and reproduce the CMake configuration with LLVM_TARGETS_TO_BUILD containing x86. Done means the configuration no longer fails with the missing X86 directory error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100