1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2026-09-19 18:01:25 +03:00
Files
SoftEtherVPN/src/Mayaqua
Meylis Annagurbanov 874675b00f cmake: fix Darwin cpu_features check testing the wrong variable
The Darwin branch of the cpu_features selection reads:

  elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" AND NOT CMAKE_SYSTEM_NAME MATCHES "^(arm64|x86_64)")

The second condition tests CMAKE_SYSTEM_NAME, which is "Darwin" inside this
branch and so never matches ^(arm64|x86_64), where it plainly means
CMAKE_SYSTEM_PROCESSOR. The NOT is therefore always true, and the branch the
comment says we "should not reach" is the one always taken. The FreeBSD
branch three lines above gets this right.

The effect is currently masked -- macOS has no sys/auxv.h, so the
HAVE_SYS_AUXV branch already defines SKIP_CPU_FEATURES first -- but the
condition is still wrong and should behave as written if that check ever
changes.
2026-08-29 11:06:03 +05:00
..
2025-12-02 02:05:27 -06:00
2022-12-25 11:35:29 +06:00
2021-04-05 04:48:25 +02:00
2014-01-04 22:00:08 +09:00
2021-12-12 20:05:36 +08:00
2026-02-05 18:48:01 +09:00
2021-04-05 04:48:25 +02:00
2021-04-05 04:48:25 +02:00
2021-04-05 04:48:25 +02:00
2026-02-06 21:03:08 +09:00
2021-04-05 04:48:25 +02:00
2021-04-05 04:48:25 +02:00
2021-04-05 04:48:25 +02:00
2021-04-05 04:48:25 +02:00
2021-04-05 04:48:25 +02:00
2014-01-04 22:00:08 +09:00
2024-02-23 11:06:27 +01:00
2024-02-23 11:06:27 +01:00
2021-04-05 04:48:25 +02:00
2021-04-05 04:48:25 +02:00
2026-02-06 21:08:52 +09:00
2021-04-05 04:48:25 +02:00
2026-02-08 23:14:09 +09:00
2021-04-05 04:48:25 +02:00
2021-04-05 04:48:25 +02:00
2026-02-21 21:15:56 +09:00
2021-04-05 04:48:25 +02:00