Dropped non-supoorted "--no-as-needed" flag from OMPT tests for macOS
authorJoachim Protze <protze@itc.rwth-aachen.de>
Thu, 5 Jul 2018 09:14:06 +0000 (09:14 +0000)
committerJoachim Protze <protze@itc.rwth-aachen.de>
Thu, 5 Jul 2018 09:14:06 +0000 (09:14 +0000)
commitb41c61eed456415961de9f4c99aa7501d7365b82
treea2fd66764c098efbb7c13cf1ada8b2be21aa22fc
parent00505b85a3fb6f6e4b095ebb6b753e7a376a7d3e
Dropped non-supoorted "--no-as-needed" flag from OMPT tests for macOS

The flag "--no-as-needed" is not recognized by the linker on macOS making the following tests fail:

ompt/loadtool/tool_available/tool_available.c
ompt/loadtool/tool_not_available/tool_not_available.c
This patch removes this flag for macOS and adds it only for Linux and Windows.
I tested it on Ubuntu 16.04 and macOS HighSierra, with Clang/LLVM 6.0.1 and OpenMP trunk.

This solution was also discussed in the OpenMP-dev mailing list.

Patch provided by Simone Atzeni

Differential Revision: https://reviews.llvm.org/D48888

llvm-svn: 336327
openmp/runtime/test/lit.cfg
openmp/runtime/test/ompt/loadtool/tool_available/tool_available.c
openmp/runtime/test/ompt/loadtool/tool_not_available/tool_not_available.c