HomePhabricator

Revert "[flang] Search for #include "file" in right directory"

Authored by awarzynski on Jan 26 2021, 4:54 AM.

Description

Revert "[flang] Search for #include "file" in right directory"

This reverts commit d987b61b1dce9948801ac37704477e7c257100b1.

As pointed out in https://reviews.llvm.org/D95388, the reverted commit
causes build failures in the following Flang buildbots:

I'm guessing that the patch was only tested with
FLANG_BUILD_NEW_DRIVER=Off (i.e. the default). The builders listed
above set FLANG_BUILD_NEW_DRIVER to On.

Although fixing the build is relatively easy, the reverted patch
modifies the behaviour of the frontend, which breaks driver tests. In
particular, in https://reviews.llvm.org/D93453 support for -I was
added that depends on the current behaviour. The reverted patch
changes that behaviour. Either the tests have to be updated or the
change fine-tuned.