This fixes the 'unused linker option: -lm' warning when compiling
program with -c.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This is semantically different to using mlink-builtin-bitcode with clang. The former internalizes all the symbols after they are introduced, using llvm-link does not. I'm not immediately sure whether that is a problem - the symbols in rocm device libs should all be __prefixed - but it's potentially bad for code size.
Suggest we fix the test case and leave restoring internalize for a later patch, thoughts?
clang/test/Driver/amdgpu-openmp-toolchain.c | ||
---|---|---|
80 | This will fail on machines with a different directory layout, perhaps copy the {{.*}} pattern from above |
clang/test/Driver/amdgpu-openmp-toolchain.c | ||
---|---|---|
80 | This was accidently put up as a comment to check the actual 'CHECK' line. |
clang-tidy: warning: namespace 'toolchains' not terminated with a closing comment [llvm-namespace-comment]
not useful