[all-commits] [llvm/llvm-project] 441f5b: [clang] Infer compilation directory in driver

Steven Wu via All-commits all-commits at lists.llvm.org
Thu Jul 31 10:39:27 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 441f5b0e367ceee5b8b12d14c0d1ebb1c29fa414
      https://github.com/llvm/llvm-project/commit/441f5b0e367ceee5b8b12d14c0d1ebb1c29fa414
  Author: Steven Wu <stevenwu at apple.com>
  Date:   2025-07-31 (Thu, 31 Jul 2025)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/compilation-dir.c

  Log Message:
  -----------
  [clang] Infer compilation directory in driver

When building with -fdebug-compilation-dir/-fcoverige-compilation-dir,
infer the compilation directory in clang driver, rather than try to
fallback to VFS current working directory lookup during CodeGen. This
allows compilation directory to be used as it is passed via cc1 flag and
the value can be empty to remove dependency on CWD if needed.

Reviewers: adrian-prantl, dwblaikie

Reviewed By: adrian-prantl, dwblaikie

Pull Request: https://github.com/llvm/llvm-project/pull/150112



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list