Commit 871e907
authored
[SYCL][E2E] Better handle the Intel Compiler in standalone build (NFC) (#18627)
The proprietary Intel Compiler (ICX) uses a different installation
layout then clang. It puts tools into a bin/compiler subdirectory (to
not expose them on the PATH by default). Handle this by not assuming
that the compiler is in the same directory as other llvm tools. Ask the
compiler for the path to `llvm-config` for the tools directory, using
the `-print-prog-name` option.
`llvm-config` was choosen because lit already assumes it is in the tools
directory see for example: [llvm/utils/lit/lit/llvm/config.py:285][1]
[1]:
https://github.com/llvm/llvm-project/blob/9cac4bf485e64f7992f2c01bb9517f6379e58164/llvm/utils/lit/lit/llvm/config.py#L2851 parent c8667f5 commit 871e907
2 files changed
Lines changed: 17 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
630 | 632 | | |
631 | 633 | | |
632 | 634 | | |
| |||
809 | 811 | | |
810 | 812 | | |
811 | 813 | | |
812 | | - | |
813 | | - | |
| 814 | + | |
| 815 | + | |
814 | 816 | | |
815 | 817 | | |
| 818 | + | |
| 819 | + | |
816 | 820 | | |
817 | | - | |
| 821 | + | |
818 | 822 | | |
819 | 823 | | |
820 | 824 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
14 | 22 | | |
15 | 23 | | |
16 | 24 | | |
| |||
0 commit comments