mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
Meta: Compile for the native architecture of the host system on Windows
when ENABLE_CI_BASELINE_CPU is OFF
This commit is contained in:
parent
4470f94129
commit
01f6f33236
Notes:
github-actions[bot]
2025-11-21 08:11:31 +00:00
Author: https://github.com/stasoid
Commit: 01f6f33236
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6862
Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 4 deletions
|
|
@ -49,10 +49,7 @@ macro(add_swift_link_options)
|
|||
add_link_options($<$<LINK_LANGUAGE:Swift>:${args}>)
|
||||
endmacro()
|
||||
|
||||
if (MSVC)
|
||||
# On Windows, we always target the same architecture since there is no -march=native equivalent.
|
||||
add_cxx_compile_options(/arch:AVX2)
|
||||
elseif (ENABLE_CI_BASELINE_CPU)
|
||||
if (ENABLE_CI_BASELINE_CPU)
|
||||
# In CI, we want to target a common architecture so different runners can share ccache caches effectively.
|
||||
if (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
|
||||
add_cxx_compile_options(-mcpu=apple-m1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue