[PATCH] D47480: clang-cl: Expose -no-canonical-prefixes

Takuto Ikuta via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 29 08:13:41 PDT 2018


takuto.ikuta added a comment.

Thank you for quick supporting, but this is not sufficient for clang-cl on windows.

llvm::InitLLVM calls windows::GetCommandLineArguments, and argv0 is changed to absolute path.
https://github.com/llvm-project/llvm-project-20170507/blob/7c81daae49eaf7f9681457b46c569c1bc6b80283/llvm/lib/Support/Windows/Process.inc#L229

Then clang's builtin include files are shown in absolute path even we specify -no-canonical-prefixes.
Can we keep using original argv0 when argv0 is not 8.3 filename? Or is there better solution?


https://reviews.llvm.org/D47480





More information about the cfe-commits mailing list