Skip to content

Commit a585c72

Browse files
jedludlowtwiecki
authored andcommitted
Add additional compiler flag to work around GCC bug.
Work around compiler bug in GCC < 8.4 related to structured exception handling registers on Windows. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65782 for details.
1 parent 80dae6b commit a585c72

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pymc3/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,12 @@ def _check_backend_version():
8181
def __set_compiler_flags():
8282
# Workarounds for Theano compiler problems on various platforms
8383
current = theano.config.gcc__cxxflags
84-
theano.config.gcc__cxxflags = f"{current} -Wno-c++11-narrowing"
84+
augmented = f"{current} -Wno-c++11-narrowing"
85+
# Work around compiler bug in GCC < 8.4 related to structured exception
86+
# handling registers on Windows.
87+
# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65782 for details.
88+
augmented = f"{augmented} -fno-asynchronous-unwind-tables"
89+
theano.config.gcc__cxxflags = augmented
8590

8691

8792
def _hotfix_theano_printing():

0 commit comments

Comments
 (0)