This revision was automatically updated to reflect the committed changes.
Closed by commit rG646e502de0d8: [clang] add -fmodule-file-home-is-cwd
(authored by rmaz).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124874/new/
urnathan accepted this revision.
urnathan added a comment.
This revision is now accepted and ready to land.
thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124874/new/
https://reviews.llvm.org/D124874
rmaz updated this revision to Diff 428483.
rmaz added a comment.
Refactor branch into existing case
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124874/new/
https://reviews.llvm.org/D124874
Files:
clang/include/clang/Driver/Options.td
urnathan added inline comments.
Comment at: clang/lib/Serialization/ASTWriter.cpp:1231-1236
+SmallString<128> BaseDir(CWD->getName());
+cleanPathForOutput(Context.getSourceManager().getFileManager(), BaseDir);
+BaseDirectory.assign(BaseDir.begin(), BaseDir.end());
+
rmaz added inline comments.
Comment at: clang/lib/Serialization/ASTWriter.cpp:1231-1236
+SmallString<128> BaseDir(CWD->getName());
+cleanPathForOutput(Context.getSourceManager().getFileManager(), BaseDir);
+BaseDirectory.assign(BaseDir.begin(), BaseDir.end());
+ }
urnathan added inline comments.
Comment at: clang/lib/Serialization/ASTWriter.cpp:1231-1236
+SmallString<128> BaseDir(CWD->getName());
+cleanPathForOutput(Context.getSourceManager().getFileManager(), BaseDir);
+BaseDirectory.assign(BaseDir.begin(), BaseDir.end());
+
rmaz updated this revision to Diff 427065.
rmaz added a comment.
fix windows paths attempt #2
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124874/new/
https://reviews.llvm.org/D124874
Files:
clang/include/clang/Driver/Options.td
rmaz updated this revision to Diff 427034.
rmaz added a comment.
Use regex for path separators in test
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124874/new/
https://reviews.llvm.org/D124874
Files:
clang/include/clang/Driver/Options.td
rmaz created this revision.
Herald added a project: All.
rmaz requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This diff adds a new frontend flag `-fmodule-file-home-is-cwd`.
The behavior of this flag is similar to