diff --git a/aesara/configdefaults.py b/aesara/configdefaults.py index b1e914b2a9..cbfd3be113 100644 --- a/aesara/configdefaults.py +++ b/aesara/configdefaults.py @@ -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 "