Initial patch for PS4 toolchain was created here: http://reviews.llvm.org/D11279
When this patch was committed in r248546, it caused 2 distinct problems.
(1) Many failures were reported on recently set up PS4 bot. The PS4 driver intentionally reported warnings if PS4 SDK was missing. The new buildbot didn't have PS4 SDK directory installed. This "combination" caused failures for all the tests that had -Werror option.
(2) ps4-linker-win.c failed on all the Windows bots.
This commit was reverted in r248548 to make the bots green again and to decide on how to deal with missing PS4 SDK directory issue.
The new patch should take care of both problems mentioned above.
Since review for http://reviews.llvm.org/D11279 was owned by Filipe Cabecinhas and already closed, it's probably easier for me to open a new code review. Feel free to compare this new patch to the latest patch in D11279.
Here is the summary of the changes:
- include/clang/Basic/DiagnosticDriverKinds.td
Added DefaultIgnore attribute to InvalidOrNonExistentDirectory.
By default, the PS4 driver won't report a warning about missing PS4 SDK. This behavior could be changed if -Weverything or
-Winvalid-or-nonexistent-directory options are passed.
- Changed
test/Driver/ps4-linker-non-win.c to use -fuse-ld=gold instead of -linker=gold
test/Driver/ps4-linker-win.c to use -fuse-ld=gold instead of -linker=gold
We do not support "-linker" option anymore. Use "-fuse-ld" instead.
- test/Driver/ps4-sdk-root.c
Added -Winvalid-or-nonexistent-directory to all the RUN lines to force the warning (this is the only test where we want to have the warnings about missing PS4 SDK directory enabled).
- test/Driver/rtti-options.cpp
Removed all the changes. No changes are needed, since the warning is not reported by default anymore.
Origianal patch extracted by Filipe Cabecinhas, me (Katya Romanova), and Pierre Gousseau.
It might help to structure this:
as: