Add optimization flags and cleanup compile settings #2

Merged
GigabiteStudios merged 4 commits from Codex/iKv:optimization into main 2026-06-17 15:33:31 +00:00
Contributor

This pull request introduces several improvements to the iKv library:

  • Added compilation flags to enable optimization and additional warnings (e.g., -O2 -Wall -Wextra -Wpedantic) for GNU/Clang compilers via CMakeLists.txt.
  • Tidy up the CMakeLists.txt by commenting an unused add_compile_options line and correcting the static library line.
  • Added #include <stdbool.h> to src/loaders/ikv2.c to ensure bool types are properly declared.
  • Extended .gitignore to exclude common build artifacts such as CMake cache files, build directories (build, cmake-build-*), IDE configuration directories (.idea/, .vscode/), and generated files (Makefile, compile_commands.json).

These changes should make the project build cleaner and reduce compiler warnings while ensuring untracked files do not clutter the repository. Please review and merge.

This pull request introduces several improvements to the iKv library: - Added compilation flags to enable optimization and additional warnings (e.g., `-O2 -Wall -Wextra -Wpedantic`) for GNU/Clang compilers via `CMakeLists.txt`. - Tidy up the `CMakeLists.txt` by commenting an unused `add_compile_options` line and correcting the static library line. - Added `#include <stdbool.h>` to `src/loaders/ikv2.c` to ensure `bool` types are properly declared. - Extended `.gitignore` to exclude common build artifacts such as CMake cache files, build directories (`build`, `cmake-build-*`), IDE configuration directories (`.idea/`, `.vscode/`), and generated files (`Makefile`, `compile_commands.json`). These changes should make the project build cleaner and reduce compiler warnings while ensuring untracked files do not clutter the repository. Please review and merge.
Codex added 3 commits 2026-06-17 06:18:24 +00:00
Enable optimization flags and warnings for GNU/Clang compilers and tidy up compile options.
Some checks failed
Build / build-script (pull_request) Successful in 16s
Build / cmake-build (pull_request) Failing after 37s
Build / unit-tests (pull_request) Failing after 24s
34756ea343
GigabiteStudios changed title from Add optimization flags and cleanup compile settings to WIP: Add optimization flags and cleanup compile settings 2026-06-17 15:15:57 +00:00
GigabiteStudios added 1 commit 2026-06-17 15:31:50 +00:00
Update CMakeLists.txt
All checks were successful
Build / build-script (pull_request) Successful in 14s
Build / cmake-build (pull_request) Successful in 48s
Build / unit-tests (pull_request) Successful in 31s
414804ddb9
GigabiteStudios changed title from WIP: Add optimization flags and cleanup compile settings to Add optimization flags and cleanup compile settings 2026-06-17 15:33:21 +00:00
GigabiteStudios merged commit 8f8bd32c19 into main 2026-06-17 15:33:31 +00:00
GigabiteStudios deleted branch optimization 2026-06-17 15:33:32 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Idea-Studios/iKv#2