Skip to content

Conversation

@lyakh
Copy link
Collaborator

@lyakh lyakh commented Nov 12, 2025

The -mno-global-merge compiler option is added by Zephyr for clang userspace builds in the top-level CMakeLists.txt as if(CONFIG_USERSPACE)
zephyr_compile_options($<TARGET_PROPERTY:compiler,no_global_merge>)
endif()
so there's no need to add it again in SOF. Particularly because it's only available with clang and shouldn't be enabled for gcc.

The -mno-global-merge compiler option is added by Zephyr for clang
userspace builds in the top-level CMakeLists.txt as
if(CONFIG_USERSPACE)
  zephyr_compile_options($<TARGET_PROPERTY:compiler,no_global_merge>)
endif()
so there's no need to add it again in SOF. Particularly because it's
only available with clang and shouldn't be enabled for gcc.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
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 removes a redundant compiler option that is already handled by Zephyr's build system. The change eliminates the -mno-global-merge compiler flag from SOF's CMakeLists.txt since Zephyr already adds this option for userspace builds in its top-level configuration.

Key changes:

  • Removed duplicate -mno-global-merge option from SOF's CMake configuration to avoid redundancy and potential gcc compatibility issues

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

@lgirdwood lgirdwood merged commit 53df9fb into thesofproject:main Nov 12, 2025
43 of 48 checks passed
@lyakh lyakh deleted the mergeglobal branch November 13, 2025 08:15
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.

3 participants