Skip to content

Commit

Permalink
Fix C++11 narrowing error on Mac OS
Browse files Browse the repository at this point in the history
Resolves #127
  • Loading branch information
dgerlanc committed Dec 2, 2022
1 parent e8c042b commit 2f38704
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions aesara/configdefaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,13 @@ def add_compile_configvars():
in_c_key=False,
)

if sys.platform == "darwin":
# Resolves C++11 narrowing error on Mac OS
# https://github.com/aesara-devs/aesara/issues/127
no_cpp_narrowing_flag = "-Wno-c++11-narrowing"
if no_cpp_narrowing_flag not in config.gcc__cxxflags:
config.gcc__cxxflags += " " + no_cpp_narrowing_flag

config.add(
"cmodule__warn_no_version",
"If True, will print a warning when compiling one or more Op "
Expand Down

0 comments on commit 2f38704

Please sign in to comment.