mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
Meta: Do not set -march=native on riscv64
This commit is contained in:
parent
b28a97b399
commit
b50b89b4a8
|
|
@ -61,6 +61,11 @@ elseif (ENABLE_CI_BASELINE_CPU)
|
|||
elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
|
||||
add_cxx_compile_options(-march=x86-64-v3)
|
||||
endif()
|
||||
elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "riscv64")
|
||||
# On RISC-V the generic -march=native is not yet supported and both gcc and clang require an explicit
|
||||
# ISA or target string. Unfortunately hardware probing is also neither easy nor reliable at the moment.
|
||||
# For the time being use the defaults for the best compatibility with existing hardware and toolchains.
|
||||
# FIXME: Remove this branch once -march=native is supported.
|
||||
else()
|
||||
# In all other cases, compile for the native architecture of the host system.
|
||||
add_cxx_compile_options(-march=native)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user