10000 BLD: Fix mingw detection when building with Clang · numpy/numpy@9123d43 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9123d43

Browse files
committed
BLD: Fix mingw detection when building with Clang
mingw-w64 nowadays is also available in combination with Clang, for example https://github.com/mstorsjo/llvm-mingw or MSYS2 provide Clang builds using mingw-w64. Instead of testing for GCC check that __MINGW32__ is defined.
1 parent 0453b92 commit 9123d43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ endif
1010

1111
# Platform detection
1212
is_windows = host_machine.system() == 'windows'
13-
is_mingw = is_windows and cc.get_id() == 'gcc'
13+
is_mingw = is_windows and cc.get_define('__MINGW32__') != ''
1414

1515
if is_mingw
1616
is_mingw_built_python = run_command(

0 commit comments

Comments
 (0)
0