Skip to content

build(cmake): remove rocprofiler-systems GCC and sanitizer guards#5196

Draft
dgaliffiAMD wants to merge 2 commits into
mainfrom
users/dgaliffi/rocprof-sys/remove-gcc-check
Draft

build(cmake): remove rocprofiler-systems GCC and sanitizer guards#5196
dgaliffiAMD wants to merge 2 commits into
mainfrom
users/dgaliffi/rocprof-sys/remove-gcc-check

Conversation

@dgaliffiAMD
Copy link
Copy Markdown
Contributor

@dgaliffiAMD dgaliffiAMD commented May 12, 2026

Motivation

rocprofiler-systems can be built with Clang and alongside sanitizer configurations. Drop the Linux bootstrap check that required GCC when ROCPROFSYS was enabled and stop skipping the subproject when THEROCK_SANITIZER is set.

Technical Details

Test Plan

Test Result

Submission Checklist

rocprofiler-systems can be built with Clang and alongside sanitizer
configurations. Drop the Linux bootstrap check that required GCC when
ROCPROFSYS was enabled, and stop skipping the subproject when
THEROCK_SANITIZER is set.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copy link
Copy Markdown
Contributor

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 updates TheRock’s CMake configuration to allow building the rocprofiler-systems subproject under a broader set of toolchain configurations, specifically enabling it with Clang and in sanitizer-enabled builds.

Changes:

  • Remove the Linux bootstrap hard-failure that required GNU compilers when THEROCK_ENABLE_ROCPROFSYS=ON.
  • Stop skipping rocprofiler-systems configuration/activation when THEROCK_SANITIZER is set.

Reviewed changes

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

File Description
profiler/CMakeLists.txt Always enables/configures the rocprofiler-systems subproject when THEROCK_ENABLE_ROCPROFSYS is ON, regardless of sanitizer settings.
cmake/therock_compiler_config.cmake Removes the Linux-only fatal error that enforced GCC for rocprofiler-systems builds.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: TODO

Development

Successfully merging this pull request may close these issues.

2 participants