build: PR0 — production native build config, C++23 wrapper, dead code removal#2
Open
mrmidi wants to merge 1 commit into
Open
build: PR0 — production native build config, C++23 wrapper, dead code removal#2mrmidi wants to merge 1 commit into
mrmidi wants to merge 1 commit into
Conversation
mrmidi
force-pushed
the
pr0/native-build
branch
2 times, most recently
from
July 20, 2026 10:09
99265de to
a79229e
Compare
PR0 (Production-Like Native Build) — align the native build system with production requirements and remove verified dead code. C++23 (full stack): - FptnLib/CMakeLists.txt: -std=c++23, cxx_std_23. - project.yml + Tools/FptnCLI/project.yml: CLANG_CXX_LANGUAGE_STANDARD c++23. - fptn submodule pinned to 7f52909 (C++23 + YAFF ranges patch). YAFF fix: C++23 libc++ ranges probes .begin() eagerly via input_or_output_iterator concept; patch defers BaseArray::begin/end to out-of-line definitions after ArrayIterator is fully defined. Dead code removal (verified zero references): - Remove -DO3 (preprocessor macro, not optimization flag). - Remove unconditional -DNDEBUG (now Debug-only; assertions active). - Remove all WSP_GGML_* defines (vestigial whisper project). - Remove -framework Accelerate/Metal/MetalKit (zero references). - Remove duplicate -lssl/-lcrypto (OpenSSL:: targets = BoringSSL). Size-oriented release flags: - MinSizeRel/Release: -Oz -ffunction-sections -fdata-sections with -Wl,-dead_strip. Build configuration mapping: - build_fptn_lib.sh: Debug→Debug, Release/Measurement→MinSizeRel. - Config-specific build dirs + build manifest for stale detection. Swift/C++ interop: - SWIFT_NONCOPYABLE on WebsocketSwiftBridge and SwiftApiClient. AGENTS.md: updated stale architecture docs. Tests: 22/22 passed. Debug build succeeded.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR0 — Production-Like Native Build
Base:
pr-1/measurement-safety(stacked PR chain)C++23 (full stack)
FptnLib/CMakeLists.txt:-std=c++23,cxx_std_23project.yml+Tools/FptnCLI/project.yml:CLANG_CXX_LANGUAGE_STANDARD: c++2383f0357— C++23 + local YAFF compatibility patch + pinned YAFF source (d6f7467, SHA-256 verified).begin()eagerly viainput_or_output_iteratorconcept; local Conan recipe defersBaseArray::begin/endto out-of-line definitions afterArrayIteratoris fully defined. Upstreamyandex/yaffuntouched.Dead code removal (verified zero references)
-DO3O3, not the-O3optimization flag-DNDEBUG(unconditional)WSP_GGML_*defines-framework Accelerate/Metal/MetalKit-lssl/-lcryptoOpenSSL::SSL/OpenSSL::Crypto(BoringSSL via Conan)Size-oriented release flags
MinSizeRel/Release:
-Oz -ffunction-sections -fdata-sections+-Wl,-dead_stripBuild configuration mapping
build_fptn_lib.sh: Debug→Debug, Release/Measurement→MinSizeRel; unknown configs failbuild-ios-Debug,build-ios-MinSizeRel)fptn_native_lib.build-manifest.json) beside the framework (not inside — written before codesign)Swift/C++ interop
SWIFT_NONCOPYABLEonWebsocketSwiftBridgeandSwiftApiClientAGENTS.md
Updated stale architecture: no
.mmfiles,SwiftApiClientnotHttpsClientBridge, C++23 interop, correct bundle IDs.Verification
codesign --verify --deep --strictStack