Skip to content

GH-49974: [C++][CMake] Add missing result variable initialization for validate_apple_libtool() - #49975

Merged
kou merged 1 commit into
apache:mainfrom
kou:cpp-libtool-validation
May 15, 2026
Merged

kou merged 1 commit into
apache:mainfrom
kou:cpp-libtool-validation

Conversation

@kou

@kou kou commented May 14, 2026

Copy link
Copy Markdown
Member

Rationale for this change

find_package()'s VALIDATOR's result variable must be initialized to TRUE by caller.

We reuse the VALIDATOR (validate_apple_libtool()) when we specify CMAKE_LIBTOOL explicitly. But we didn't initialize the result variable to TRUE.

What changes are included in this PR?

Initialize is_apple_libtool explicitly.

Are these changes tested?

Yes.

Are there any user-facing changes?

Yes.

`find_package()`'s `VALIDATOR`'s result variable must be initialized
to `TRUE` by caller.
Copilot AI review requested due to automatic review settings May 14, 2026 00:32
@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #49974 has been automatically assigned in GitHub to PR creator.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 fixes a macOS CMake configuration bug where explicitly setting -DCMAKE_LIBTOOL=... could fail validation because the VALIDATOR result variable wasn’t initialized before calling validate_apple_libtool().

Changes:

  • Initialize is_apple_libtool to TRUE before invoking validate_apple_libtool() when CMAKE_LIBTOOL is explicitly provided.

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

@kou

kou commented May 15, 2026

Copy link
Copy Markdown
Member Author

+1

Tested: #49974 (comment)

@kou
kou merged commit 6d6f246 into apache:main May 15, 2026
52 checks passed
@kou kou removed the awaiting committer review Awaiting committer review label May 15, 2026
@kou
kou deleted the cpp-libtool-validation branch May 15, 2026 00:18
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 6d6f246.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 27 possible false positives for unstable benchmarks that are known to sometimes produce them.

Mottl pushed a commit to Mottl/arrow that referenced this pull request May 26, 2026
…on for `validate_apple_libtool()` (apache#49975)

### Rationale for this change

`find_package()`'s `VALIDATOR`'s result variable must be initialized to `TRUE` by caller.

We reuse the `VALIDATOR` (`validate_apple_libtool()`) when we specify `CMAKE_LIBTOOL` explicitly. But we didn't initialize the result variable to `TRUE`.

### What changes are included in this PR?

Initialize `is_apple_libtool` explicitly.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes.

* GitHub Issue: apache#49974

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants