[all-commits] [llvm/llvm-project] eddc48: [Driver][test] Add -no-canonical-prefixes after D1...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jul 19 14:40:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eddc4850d81f4c9f79d0b17869d67eac8ca88070
      https://github.com/llvm/llvm-project/commit/eddc4850d81f4c9f79d0b17869d67eac8ca88070
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-07-19 (Wed, 19 Jul 2023)

  Changed paths:
    M clang/test/Driver/baremetal.cpp

  Log Message:
  -----------
  [Driver][test] Add -no-canonical-prefixes after D154357

If the path components of %clang contain a symlink, e.g.

```
% cd /tmp; ln -s Rel xxx
% /tmp/xxx/bin/clang --target=powerpc-unknown-eabi -xc /dev/null '-###'
InstalledDir: /tmp/xxx/bin
...
"-internal-isystem" "/tmp/Rel/bin/../lib/clang-runtimes/powerpc-unknown-eabi/include"
```

the test will fail. Such commands should use -no-canonical-prefixes, or
derive the include and library paths from cc1 -isysroot using driver
--sysroot.




More information about the All-commits mailing list