Skip to content
/ server Public

MDEV-38855 Remove obsolete compiler version checks from storage/rocksdb/CMakeLists.txt#4663

Open
ChandanaRamakrishna wants to merge 2 commits intoMariaDB:mainfrom
ChandanaRamakrishna:MDEV-35462-part1-rocksdb
Open

MDEV-38855 Remove obsolete compiler version checks from storage/rocksdb/CMakeLists.txt#4663
ChandanaRamakrishna wants to merge 2 commits intoMariaDB:mainfrom
ChandanaRamakrishna:MDEV-35462-part1-rocksdb

Conversation

@ChandanaRamakrishna
Copy link

Part 1 of MDEV-35462, removing obsolete compiler version checks.

Changes

Simplified storage/rocksdb/CMakeLists.txt by removing:

  • GCC < 4.8 and < 5.0 version checks
  • Clang < 3.3 version checks
  • CMake < 3.0 fallback logic
  • Manual -std=c++11 flag handling

Replaced with modern CMAKE_CXX_STANDARD configuration.

Confirmed Minimums

As confirmed by @marko:

  • GCC >= 7
  • Clang >= 10
  • CMake >= 3.12

Use CMAKE_CXX_STANDARD for C++11 configuration.

Related

No functional changes intended.

…Lists.txt

Assume:
- GCC >= 7
- Clang >= 10
- CMake >= 3.12

Remove:
- GCC < 4.8 and < 5.0 checks
- Clang < 3.3 checks
- CMake < 3.0 fallback logic
- Manual -std=c++11 flag handling

Use CMAKE_CXX_STANDARD for C++11 configuration.
@CLAassistant
Copy link

CLAassistant commented Feb 17, 2026

CLA assistant check
All committers have signed the CLA.

@gkodinov gkodinov added the External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements. label Feb 18, 2026
@gkodinov gkodinov self-assigned this Feb 18, 2026
@gkodinov gkodinov changed the title MDEV-35462 Remove obsolete compiler version checks from storage/rocksdb/CMakeLists.txt MDEV-38855 Remove obsolete compiler version checks from storage/rocksdb/CMakeLists.txt Feb 18, 2026
@gkodinov
Copy link
Member

Since this is not the full MDEV-35462 I've created a sub-task of it and added the contribution to it.

Copy link
Member

@gkodinov gkodinov left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution. LGTM. Note that this is a preliminary review. Please wait for the final reviewer assignment.

@vuvova vuvova changed the title MDEV-38855 Remove obsolete compiler version checks from storage/rocksdb/CMakeLists.txt MDEV-462 Remove obsolete compiler version checks from storage/rocksdb/CMakeLists.txt Feb 18, 2026
@vuvova vuvova changed the title MDEV-462 Remove obsolete compiler version checks from storage/rocksdb/CMakeLists.txt MDEV-35462 Remove obsolete compiler version checks from storage/rocksdb/CMakeLists.txt Feb 18, 2026
@vuvova vuvova changed the title MDEV-35462 Remove obsolete compiler version checks from storage/rocksdb/CMakeLists.txt MDEV-38855 Remove obsolete compiler version checks from storage/rocksdb/CMakeLists.txt Feb 18, 2026
@ChandanaRamakrishna
Copy link
Author

ChandanaRamakrishna commented Feb 18, 2026 via email

@ChandanaRamakrishna
Copy link
Author

ChandanaRamakrishna commented Feb 18, 2026 via email

COMPILE_FLAGS "-fno-builtin-memcmp -Wno-error")
ELSE()
SET_TARGET_PROPERTIES(rocksdblib PROPERTIES
COMPILE_FLAGS "-fPIC -fno-builtin-memcmp -Wno-error")
Copy link
Member

@vaintroub vaintroub Feb 18, 2026

Choose a reason for hiding this comment

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

Just remove that -fPIC always from the above line. Always, not just for clang-cl. For everything. no need for more IF. No need for more -fPICs . ADD_CONVENIENCE_LIBRARY above adds that if needed.

Copy link
Member

@vaintroub vaintroub left a comment

Choose a reason for hiding this comment

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

I'm ok with that.
I would not split lines in SET_TARGET_PROPERTIES in build_rocksdb.cmake, those are not too long, but no strong opinions . It is probably VSCode that formats that for you?

@ChandanaRamakrishna
Copy link
Author

ChandanaRamakrishna commented Feb 18, 2026 via email

@gkodinov gkodinov requested a review from dr-m February 19, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements.

Development

Successfully merging this pull request may close these issues.

5 participants

Comments