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

Commit a2b6bdb

Browse files
authored
Update (Windows) msvc extra_compile_args
Added Cython to see what compiler is used (on Windows)
1 parent 688b157 commit a2b6bdb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

setup.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,12 @@ def find_version(*parts):
117117
]
118118

119119
if platform.platform().startswith('Win'):
120-
extra_compile_args = [
121-
'/EHsc',
122-
'-DBOOST_DATE_TIME_NO_LIB',
123-
]
120+
from Cython.Build.Inline import _get_build_extension
121+
if _get_build_extension().compiler == 'msvc':
122+
extra_compile_args = [
123+
'/EHsc',
124+
'-DBOOST_DATE_TIME_NO_LIB',
125+
]
124126

125127

126128
stanc_sources = [

0 commit comments

Comments
 (0)