Skip to content

Commit 3e5139f

Browse files
committed
Fix the Windows build
1 parent c6843f4 commit 3e5139f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

configure

+5-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,11 @@ def target_arch():
264264

265265

266266
def compiler_version():
267-
proc = subprocess.Popen(CC.split() + ['--version'], stdout=subprocess.PIPE)
267+
try:
268+
proc = subprocess.Popen(CC.split() + ['--version'], stdout=subprocess.PIPE)
269+
except WindowsError:
270+
return (0, False)
271+
268272
is_clang = 'clang' in proc.communicate()[0].split('\n')[0]
269273

270274
proc = subprocess.Popen(CC.split() + ['-dumpversion'], stdout=subprocess.PIPE)

0 commit comments

Comments
 (0)