[LLVMdev] Does also-emit-llvm plugin option in gold plugin still work?

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Thu Jul 7 08:12:09 PDT 2011


> ==========================
> Then I ran configure and make but got the following errors:
> clang: warning: -Wl,: 'linker' input unused when '-c' is present
> clang: warning: argument unused during compilation:
> '-plugin-opt=also-emit-llvm'
> CXX(target) llvm/Debug/obj.target/base/base/base64.o
> clang: warning: -Wl,: 'linker' input unused when '-c' is present
> clang: warning: argument unused during compilation:
> '-plugin-opt=also-emit-llvm'
> CXX(target) llvm/Debug/obj.target/base/base/event_recorder_stubs.o
> clang: warning: -Wl,: 'linker' input unused when '-c' is present
> clang: warning: argument unused during compilation:
> '-plugin-opt=also-emit-llvm'
> CXX(target) llvm/Debug/obj.target/base/base/file_descriptor_shuffle.o
>
>
> Do you know how I can solve this problem? Thanks in advance.

Those are warnings. You can put the -Wl,-plugin-opt in LDFLAGS.

Open a bug if you think that we shouldn't warn for

clang -c -Wl,foo bar.c

Cheers,
Rafael




More information about the llvm-dev mailing list