Porting#164
Merged
Merged
Conversation
…mpilation 或是環境變數的客製化
CMake ≥ 3.29,並說明如何檢查與升級 明確列出 C++20 與編譯器 (g++-11 / clang++-16+) 說明需要 BLAS/LAPACK (OpenBLAS / LAPACK) Linux:改寫為用預設 gcc/g++,並提到可用環境變數或 .env.local 覆寫編譯器。 macOS: 保留 LLVM 選項,並新增 GCC 選項(遇到 fmt/consteval 錯誤時建議用 GCC) 說明用 .env.local 指定 Homebrew GCC 的路徑與範例 Local overrides (.env.local) 新章節: 說明 .env.local 為選用、僅在檔案存在時被讀取、且被 git 忽略 建議 cp .env.local.example .env.local 再編輯 給出 CC / CXX 的範例 Docker Builds: 強調可直接 docker run ... 使用預建映像 註明 make build-docker 需要映像內 CMake ≥ 3.29
- Add -Wno-error=cast-user-defined for qsyn executable and libqsyn when using GNU compiler. GCC 15 treats C-style cast in ordered_hashtable (pair<K,V> to pair<const K,V>&) as -Werror=cast-user-defined; this keeps the build passing while preserving the warning. Made-with: Cursor
- Include .env.local when present so CC, CXX (and other vars) can be overridden per-developer without touching the repo. - Only include if .env.local exists (wildcard check). - Clarify comment for platform default compiler block. Made-with: Cursor
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.
Check List
make test?make test-docker?make lintbefore submission?Added
Changed
Fixed
Removed