Skip to content

Enable OpenMP runtime for LLVM version 10#10

Open
Shinji-IkariG wants to merge 1 commit into
masterfrom
Shinji-IkariG-patch-1
Open

Enable OpenMP runtime for LLVM version 10#10
Shinji-IkariG wants to merge 1 commit into
masterfrom
Shinji-IkariG-patch-1

Conversation

@Shinji-IkariG

Copy link
Copy Markdown
Contributor

Add option to enable OpenMP runtime for LLVM 10.x builds

What type of PR is this?

  • bug
  • feature
  • enhancement

What problem(s) does this PR solve?

Issue(s) number:

Description:

How do you solve it?

Special notes for your reviewer, ex. impact of this fix, design document, etc:

Add option to enable OpenMP runtime for LLVM 10.x builds

Copilot AI left a comment

Copy link
Copy Markdown

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 adds conditional logic to enable OpenMP runtime support for LLVM 10.x builds. The change detects when LLVM version 10.* is being built and sets a CMake option to enable OpenMP as a runtime.

Key Changes

  • Introduced version-specific logic to enable OpenMP runtime for LLVM 10.x builds
  • Added conditional variable assignment for the LLVM_ENABLE_RUNTIMES CMake option

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

Comment thread scripts/build-llvm
Comment on lines +212 to 216
extra_runtimes_opt=""
if [[ $llvm_version == 10.* ]]; then
extra_runtimes_opt='-DLLVM_ENABLE_RUNTIMES=openmp'
fi
cmake $source_dir \

Copilot AI Nov 4, 2025

Copy link

Choose a reason for hiding this comment

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

The variable extra_runtimes_opt is defined but never used in the cmake command that follows. It should be added as an argument to the cmake command, likely using $extra_runtimes_opt without quotes to allow it to expand properly when non-empty, or be omitted when empty.

Copilot uses AI. Check for mistakes.
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.

2 participants