Skip to content

FIX: always statically link simdutf via FetchContent#608

Merged
bewithgaurav merged 5 commits into
microsoft:mainfrom
edgarrmondragon:fix/macos-wheel-simdutf-dynamic-link
Jun 3, 2026
Merged

FIX: always statically link simdutf via FetchContent#608
bewithgaurav merged 5 commits into
microsoft:mainfrom
edgarrmondragon:fix/macos-wheel-simdutf-dynamic-link

Conversation

@edgarrmondragon
Copy link
Copy Markdown
Contributor

@edgarrmondragon edgarrmondragon commented May 29, 2026

Work Item / Issue Reference

AB#45378

GitHub Issue: #607


Summary

The published macOS universal2 wheel dynamically links simdutf against a Homebrew path baked in at CI build time, causing an import failure on any machine that doesn't have simdutf installed at that exact path.

Fix: remove the find_package(simdutf) call in CMakeLists.txt so FetchContent is always used, which builds simdutf as a static library and embeds its symbols directly into the extension.

Closes microsoft#607

Signed-off-by: Edgar Ramírez Mondragón <edgarrm358@gmail.com>
@edgarrmondragon edgarrmondragon marked this pull request as ready for review May 29, 2026 21:15
Copilot AI review requested due to automatic review settings May 29, 2026 21:15
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

Note

Copilot was unable to run its full agentic suite in this review.

Removes the optional find_package(simdutf) lookup and always fetches simdutf v8.2.0 via FetchContent.

Changes:

  • Eliminates the find_package(simdutf CONFIG QUIET) check and the surrounding conditional branch
  • Makes the FetchContent download of simdutf v8.2.0 unconditional
  • Dedents the FetchContent configuration accordingly

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

Comment thread mssql_python/pybind/CMakeLists.txt
@edgarrmondragon edgarrmondragon changed the title FIX: always statically link simdutf via FetchContent on macOS FIX: always statically link simdutf via FetchContent May 29, 2026
@bewithgaurav
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@bewithgaurav bewithgaurav linked an issue Jun 2, 2026 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

📊 Code Coverage Report

🔥 Diff Coverage

100%


🎯 Overall Coverage

80%


📈 Total Lines Covered: 6654 out of 8256
📁 Project: mssql-python


Diff Coverage

Diff: main...HEAD, staged and unstaged changes

No lines with coverage information in this diff.


📋 Files Needing Attention

📉 Files with overall lowest coverage (click to expand)
mssql_python.pybind.logger_bridge.cpp: 59.2%
mssql_python.pybind.ddbc_bindings.h: 59.7%
mssql_python.pybind.logger_bridge.hpp: 70.8%
mssql_python.pybind.ddbc_bindings.cpp: 76.1%
mssql_python.row.py: 76.9%
mssql_python.__init__.py: 77.3%
mssql_python.pybind.connection.connection.cpp: 77.3%
mssql_python.ddbc_bindings.py: 79.6%
mssql_python.logging.py: 85.5%
mssql_python.connection.py: 85.6%

🔗 Quick Links

⚙️ Build Summary 📋 Coverage Details

View Azure DevOps Build

Browse Full Coverage Report

@bewithgaurav
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@jahnvi480
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@bewithgaurav bewithgaurav merged commit 04179d1 into microsoft:main Jun 3, 2026
25 checks passed
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.

macOS wheel fails to import - simdutf symbols not found at runtime

4 participants