Skip to content

Commit

Permalink
Add additional complier flag to work around GCC bug.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jedludlow authored and twiecki committed Jan 17, 2022
1 parent c3ffec8 commit d52655d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pymc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ def __set_compiler_flags():
import aesara

current = aesara.config.gcc__cxxflags
aesara.config.gcc__cxxflags = f"{current} -Wno-c++11-narrowing"
augmented = f"{current} -Wno-c++11-narrowing"
# 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.
augmented = f"{augmented} -fno-asynchronous-unwind-tables"
aesara.config.gcc__cxxflags = augmented


__set_compiler_flags()
Expand Down

0 comments on commit d52655d

Please sign in to comment.