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 Oct 9, 2022
1 parent 739bd49 commit 6530d34
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions aesara/configdefaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,16 @@ def add_compile_configvars():
in_c_key=False,
)

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

config.gcc__cxxflags = " ".join(cxx_flags)

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

0 comments on commit 6530d34

Please sign in to comment.