[PATCH] D87928: Provide -fsource-dir flag in Clang

Petr Hosek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 18 12:23:42 PDT 2020


phosek added a comment.

This change is trying to address the issues raised in D83154 <https://reviews.llvm.org/D83154>. There are still some open questions:

- Is `-fsource-dir` the best name for this flag?
- I'm not sure if `make_relative` should be applied to all source paths, or only paths that start with `SourceDir` which would exclude system paths outside of the source directory (e.g. it's probably undesirable to relativize paths to `/usr/include`)?
- If we decide to exclude source paths outside of the source directory, should we support `-fsource-dir` to be specified more then once to handle multiple source directories?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87928/new/

https://reviews.llvm.org/D87928



More information about the cfe-commits mailing list