PRUNERS / archer

Archer, a data race detection tool for large OpenMP applications
https://pruners.github.io/archer
Apache License 2.0
62 stars 13 forks source link

Warning of "unused linker flags" when compiling with Archer #17

Closed simoatze closed 7 years ago

simoatze commented 7 years ago

@lee218llnl Hey Greg, in the clang-archer wrapper the configuration allows to insert the correct rpath, etc. However when we use the wrapper to compile a file the .o we get the warning:

clang-3.9: warning: -Wl,-rpath=/home/simone/usr/lib: 'linker' input unused
clang-3.9: warning: argument unused during compilation: '-L/home/simone/usr/lib'

because we are not linking yet. Do you know a way how to avoid this? Checking for the -c flag and put an if-then-else inside the wrapper would be enough?

Thanks!

lee218llnl commented 7 years ago

@simoatze I have a fix for this. Should I submit a pull request to the master branch or the towards_tr4 branch?

simoatze commented 7 years ago

That would be great, thanks Greg!

dongahn commented 7 years ago

Probably to the master.