Skip to content

Commit d52655d

Browse files
jedludlowtwiecki
authored andcommitted
Add additional complier 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 c3ffec8 commit d52655d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pymc/__init__.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ def __set_compiler_flags():
3333
import aesara
3434

3535
current = aesara.config.gcc__cxxflags
36-
aesara.config.gcc__cxxflags = f"{current} -Wno-c++11-narrowing"
36+
augmented = f"{current} -Wno-c++11-narrowing"
37+
# Work around compiler bug in GCC < 8.4 related to structured exception
38+
# handling registers on Windows.
39+
# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65782 for details.
40+
augmented = f"{augmented} -fno-asynchronous-unwind-tables"
41+
aesara.config.gcc__cxxflags = augmented
3742

3843

3944
__set_compiler_flags()

0 commit comments

Comments
 (0)