diff --git a/CMakeLists.txt b/CMakeLists.txt index 23d41dc..1a7ab64 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,9 +81,9 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") # the build: a library that silently rewrites its host's toolchain rules is worse than one that is not # reproducible inside someone else's tree. if (_cpp_pinyin_top_level) - set(CMAKE_CXX_ARCHIVE_CREATE " qcD ") - set(CMAKE_CXX_ARCHIVE_APPEND " qD ") if (NOT APPLE) + set(CMAKE_CXX_ARCHIVE_CREATE " qcD ") + set(CMAKE_CXX_ARCHIVE_APPEND " qD ") # `ar qcD` on its own IS deterministic; the plain `ranlib` that CMake runs afterwards is NOT -- it # rewrites the symbol index with the current time in the member header, which is where the last # difference between two builds came from (measured 2026-10-20: `ar qcD` twice -> identical,