Fix tests to pass with clang-6..9 on Ubuntu 20.04.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
bolt/test/X86/symtab-secondary-entries.test | ||
---|---|---|
5 | I don't really mind to use linker directly, but I prefer to use it through compiler, it may send extra flags that linker may expect like -m <arch>, crt files, lib paths & etc, it just seems more universal solution for me, although this way seems to be fine too :) What do you think? |
bolt/test/X86/symtab-secondary-entries.test | ||
---|---|---|
5 | I think it's problematic to rely on implicit compiler behavior wrt linking. Ideally, tests don't need to rely on system libraries at all. I completely agree that compiling assembly is a lot more convenient with the compiler toolchain, but for tests I think it's best to make it more explicit (at least where we can, e.g. for assembly tests). |
bolt/test/X86/symtab-secondary-entries.test | ||
---|---|---|
5 | Well it is more convenient and might be more robust, but I see what you mean. Also we might need to add %ldflags for such tests :) |
I don't really mind to use linker directly, but I prefer to use it through compiler, it may send extra flags that linker may expect like -m <arch>, crt files, lib paths & etc, it just seems more universal solution for me, although this way seems to be fine too :) What do you think?