Commit 0fd9a4e
authored
[SYCL] Fix triple in offload mismatch warning (#10385)
This patch fixes small issues after
#9631
When standardizing the triples the format should be:
```
<arch><sub>-<vendor>-<sys>-<env>
```
* https://clang.llvm.org/docs/CrossCompilation.html#target-triple
And then we add our offload arch afterwards, so the final triples should
look something like: `nvptx64-nvidia-cuda--sm_50`, instead of
`nvptx64-nvidia-cuda-sm_50-`.
In addition never skip standardization so that triples like
`nvptx64-nvidia-cuda-`, are also properly standardized to
`nvptx64-nvidia-cuda--`.1 parent bf60383 commit 0fd9a4e
File tree
2 files changed
+17
-8
lines changed- clang
- lib/Driver
- test/Driver
2 files changed
+17
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | 125 | | |
128 | 126 | | |
129 | 127 | | |
| |||
6036 | 6034 | | |
6037 | 6035 | | |
6038 | 6036 | | |
| 6037 | + | |
| 6038 | + | |
| 6039 | + | |
| 6040 | + | |
| 6041 | + | |
| 6042 | + | |
| 6043 | + | |
| 6044 | + | |
| 6045 | + | |
| 6046 | + | |
| 6047 | + | |
6039 | 6048 | | |
6040 | | - | |
6041 | | - | |
| 6049 | + | |
| 6050 | + | |
| 6051 | + | |
6042 | 6052 | | |
6043 | 6053 | | |
6044 | 6054 | | |
| |||
6047 | 6057 | | |
6048 | 6058 | | |
6049 | 6059 | | |
| 6060 | + | |
6050 | 6061 | | |
6051 | | - | |
6052 | 6062 | | |
6053 | 6063 | | |
6054 | | - | |
6055 | 6064 | | |
6056 | 6065 | | |
6057 | 6066 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments