Skip to content

config: Sync CPU related options with 6.15 PKGBUILD#51

Merged
vnepogodin merged 2 commits intodevelopfrom
feat/6.15-sync
May 26, 2025
Merged

config: Sync CPU related options with 6.15 PKGBUILD#51
vnepogodin merged 2 commits intodevelopfrom
feat/6.15-sync

Conversation

@1Naim
Copy link
Member

@1Naim 1Naim commented May 25, 2025

Closes #50

The auto_cpu_optimization script has been removed in 6.15. All native
builds will now use _processor_opt=native to use -march=native.

Remove the check here to sync with the PKGBUILD.

Signed-off-by: Eric Naim <dnaim@cachyos.org>
@1Naim 1Naim requested review from Copilot and vnepogodin May 25, 2025 09:50
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR synchronizes CPU-related options by removing the deprecated automatic optimization flag and updating the CPU optimization modes across the configuration, UI, and FFI layers.

  • Removed auto_optim_check references in header, source, UI, JSON schema, and Rust FFI
  • Updated cpu_opt_mode constants and combobox labels to new CPU optimization options
  • Cleaned up obsolete entries in compile_options.json and lib.rs

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/config-options.hpp Removed deprecated auto_optim_check field
src/config-options.cpp Stripped out parsing and writing of auto_optim_check
src/conf-window.cpp Updated lookup macro for CPU options; removed autooptim UI code
src/conf-options-page.ui Deleted the autooptim_widget UI block
src/compile_options.json Removed "auto_optim" mapping
config-option-lib/src/lib.rs Removed auto_optim_check from Rust FFI struct
Comments suppressed due to low confidence (2)

src/conf-window.cpp:108

  • [nitpick] The key manual is now displayed as Disabled in the combobox. Consider aligning the lookup key or the label for consistency or add a comment clarifying this mapping to avoid confusion.
GENERATE_CONST_LOOKUP_OPTION_VALUES(cpu_opt_mode, "manual", "generic", "generic_v2", "generic_v3", "generic_v4", "native", "zen4")

src/compile_options.json:18

  • Ensure any documentation or schema definitions referencing the removed auto_optim option are updated to prevent stale references and inform users of its deprecation.
"auto_optim": "_use_auto_optimization",

6.15 removed a bunch of different CPU configurations. The only valid
configs are now v1-4 x86_64, zen4, and native.

Co-authored-by: Vladislav Nepogodin <nepogodin.vlad@gmail.com>
Signed-off-by: Eric Naim <dnaim@cachyos.org>
@1Naim 1Naim force-pushed the feat/6.15-sync branch from 424dbd0 to 0867225 Compare May 26, 2025 14:17
Copy link
Member

@vnepogodin vnepogodin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks!

@vnepogodin vnepogodin merged commit 698981f into develop May 26, 2025
0 of 4 checks passed
@vnepogodin vnepogodin deleted the feat/6.15-sync branch May 26, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update CPU Opt flags for 6.15.0

3 participants