🌐 AI搜索 & 代理 主页
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/release/upcoming_changes/29750.change.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The ``npymath`` and ``npyrandom`` libraries now have a ``.lib`` rather than a
``.a`` file extension on win-arm64, for compatibility for building with MSVC and
``setuptools``. Please note that using these static libraries is discouraged
and for existing projects using it, it's best to use it with a matching
compiler toolchain, which is ``clang-cl`` on Windows on Arm.
2 changes: 1 addition & 1 deletion numpy/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ endif
# than a `.a` file extension in order not to break including them in a
# distutils-based build (see gh-23981 and
# https://mesonbuild.com/FAQ.html#why-does-building-my-project-with-msvc-output-static-libraries-called-libfooa)
if is_windows and cc.get_id() == 'msvc'
if is_windows and cc.get_id() in ['msvc', 'clang-cl']
name_prefix_staticlib = ''
name_suffix_staticlib = 'lib'
else
Expand Down