1 |
>>>>> On Sun, 28 Aug 2022, Yiyang Wu wrote: |
2 |
|
3 |
> - if has ${gpu_target} "${OFFICIAL_AMDGPU_TARGETS[*]}"; then |
4 |
> + if has "${gpu_target}" ${OFFICIAL_AMDGPU_TARGETS[*]}; then |
5 |
|
6 |
This still doesn't look right. It should be: |
7 |
|
8 |
if has "${gpu_target}" "${OFFICIAL_AMDGPU_TARGETS[@]}"; then |
9 |
|
10 |
From Bash documentation: |
11 |
|
12 |
| If the word is double-quoted, '${NAME[*]}' expands to a single word |
13 |
| with the value of each array member separated by the first character |
14 |
| of the 'IFS' variable, and '${NAME[@]}' expands each element of NAME |
15 |
| to a separate word. |
16 |
|
17 |
Ulrich |