Skip to content

Commit c7afc21

Browse files
authored
Disable FAST_COMPILE on windows again (#4011)
1 parent 611eceb commit c7afc21

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pymc3/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,8 @@
3131
def __set_compiler_flags():
3232
# Workarounds for Theano compiler problems on various platforms
3333
import theano
34-
35-
system = platform.system()
36-
if system == "Windows":
37-
theano.config.mode = "FAST_COMPILE"
38-
elif system == "Darwin":
39-
theano.config.gcc.cxxflags = "-Wno-c++11-narrowing"
34+
current = theano.config.gcc.cxxflags
35+
theano.config.gcc.cxxflags = f"{current} -Wno-c++11-narrowing"
4036

4137

4238
__set_compiler_flags()

0 commit comments

Comments
 (0)