8000 BLD: Fix mingw detection when building with Clang · numpy/numpy@862fd82 · GitHub
[go: up one dir, main page]

Skip to content

Commit 862fd82

Browse files
committed
BLD: Fix mingw detection when building with Clang
It was only checking for GCC, but we use Clang too nowadays.
1 parent fb97e77 commit 862fd82

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_id() in ['gcc', 'clang']
1414
is_mingw_python = is_mingw and run_command(
1515
py, ['-c', 'import sysconfig; print(sysconfig.get_platform())'],
1616
check: true).stdout().strip().startswith('mingw')

0 commit comments

Comments
 (0)
0