Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit dfa5bb8

Browse files
authored
Fix default compiler when None
1 parent 9b9dcef commit dfa5bb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pystan/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def __init__(self, file=None, charset='utf-8', model_name="anon_model",
285285
'-Wno-unused-function',
286286
'-Wno-uninitialized',
287287
]
288-
if platform.platform().startswith('Win') and build_extension.compiler == 'msvc':
288+
if platform.platform().startswith('Win') and build_extension.compiler in (None, 'msvc'):
289289
extra_compile_args = ['/EHsc', '-DBOOST_DATE_TIME_NO_LIB']
290290

291291
distutils.log.set_verbosity(verbose)

0 commit comments

Comments
 (0)