Add initial rough support for synthesizing linker options when passed
authorChandler Carruth <chandlerc@gmail.com>
Thu, 17 Jan 2013 13:19:29 +0000 (13:19 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 17 Jan 2013 13:19:29 +0000 (13:19 +0000)
commit01538006012b5dab8754f52f8ec93d603a6dec43
tree5840f20530a84f5a18e0787eac5922a0fff582e7
parent125e26d49b8757eec0621606876afd72b8db9573
Add initial rough support for synthesizing linker options when passed
-fopenmp in the link step on Linux. There is probably more tweaking that
will need to take place to get good support for linking the relevant
libraries on all Linux distributions and/or on other platforms, but this
get's the ball moving and allows Clang to build programs which contain
OpenMP pragmas that can be safely ignored by a compiler that doesn't
implement them, and yet makes direct calls into the OpenMP runtime.

llvm-svn: 172715
clang/lib/Driver/Tools.cpp
clang/test/OpenMP/linking.c [new file with mode: 0644]