Commit e719bb7c authored by Kito Cheng's avatar Kito Cheng
Browse files

Handle multilib config correctly

`--build-arch-abi` may give more than one arch/abi pair if multilib
enabled, but we don't handle that well before...

Before the patch:
```bash
$ scripts/generate_target_board --sim-name riscv-sim --cmodel medlow \
  --build-arch-abi "rv32imac-ilp32 rv32imafdc-ilp32d rv64imac-lp64 rv64imafdc-lp64d" \
  --extra-test-arch-abi-flags-list ""
riscv-sim/-march=rv32imac/-mabi=ilp32 rv32imafdc/-mcmodel=medlow
```

After the patch:
```bash
$ scripts/generate_target_board --sim-name riscv-sim --cmodel medlow \
  --build-arch-abi "rv32imac-ilp32 rv32imafdc-ilp32d rv64imac-lp64 rv64imafdc-lp64d" \
  --extra-test-arch-abi-flags-list ""
riscv-sim/-march=rv32imac/-mabi=ilp32/-mcmodel=medlow riscv-sim/-march=rv32imafdc/-mabi=ilp32d/-mcmodel=medlow riscv-sim/-march=rv64imac/-mabi=lp64/-mcmodel=medlow riscv-sim/-march=rv64imafdc/-mabi=lp64d/-mcmodel=medlow
```
parent ae8dc939
Pipeline #2164 failed with stages
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment