As mentioned in https://reviews.llvm.org/D81326#2093931, I'm not sure it
makes sense to use the default target triple to determine -arch.
Long-term we should probably detect it from the input object files, but
in the meantime it would be nice not to have to add it to all our tests
by using a convenient default.
Details
Details
- Reviewers
smeenai - Group Reviewers
Restricted Project - Commits
- rG2f4cfa3c7add: [lld-macho] Avoid explicit -arch in tests by defaulting to x86-64
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This makes sense to me.
Long-term, we want to infer the target architecture from the input object files (as ld64 and the other LLD ports do). Short term, we only support x86-64. Inferring the target architecture from LLVM's default target triple doesn't seem like a necessary intermediate step.