Skip to content

Commit

Permalink
Fix target naming
Browse files Browse the repository at this point in the history
  • Loading branch information
libiot committed Jun 22, 2024
1 parent 66766ad commit 58f5c5b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ function(
# Exceptions are architectures pre-armv7, which compiler-rt expects to
# see in the triple because that's where it looks to decide whether to
# use specific assembly sources.
if(NOT target_triple MATCHES "^(aarch64-none-elf|arm-none-eabi|armv[4-6]|riscv32)")
if(NOT target_triple MATCHES "^(aarch64-none-elf|arm-none-eabi|armv[4-6]|riscv32-none-elf)")
message(FATAL_ERROR "\
Target triple name \"${target_triple}\" not compatible with compiler-rt.
Use -march to specify the architecture.")
Expand All @@ -892,7 +892,7 @@ Use -march to specify the architecture.")
Hard-float library with target triple \"${target_triple}\" must end \"-eabihf\"")
endif()
if(target_triple MATCHES "^riscv32")
#string(REPLACE "-none-" "-unknown-unknown-" normalized_target_triple ${target_triple})
#string(REPLACE "-none-" "-unknown-none-" normalized_target_triple ${target_triple})
set(normalized_target_triple ${target_triple})
else()
# ARM
Expand Down Expand Up @@ -1349,7 +1349,7 @@ add_library_variants_for_cpu(
riscv32
SUFFIX soft_nofp
COMPILE_FLAGS ""
MULTILIB_FLAGS "--target=riscv32-none-unknown-elf"
MULTILIB_FLAGS "--target=riscv32-unknown-none-elf"
PICOLIBC_BUILD_TYPE "release"
QEMU_MACHINE "sifive_e"
QEMU_CPU "sifive-e31"
Expand Down
8 changes: 4 additions & 4 deletions cmake/multilib.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ Mappings:
Flags:
- -march=thumbv8.1m.main+lob

# RISC-Variants
# RISC-Variants - TBR
# riscv32
- Match: --target=riscv32\.base-unknown-none-eabi
Flags:
- --target=riscv32-unknown-none-eabi
#- Match: --target=riscv32\.base-unknown-none-elf
# Flags:
# - --target=riscv32-unknown-none-elf

0 comments on commit 58f5c5b

Please sign in to comment.