Skip to content

Commit

Permalink
Put workaround for odc on macOS/[email protected] back in
Browse files Browse the repository at this point in the history
  • Loading branch information
climbfuji committed Aug 8, 2024
1 parent 55db9fe commit 668313a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions var/spack/repos/builtin/packages/odc/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,10 @@ def cmake_args(self):
# The tests download additional data (~650MB):
self.define("ENABLE_TESTS", self.run_tests),
]
# https://github.com/JCSDA/spack-stack/issues/585
if self.spec.satisfies("%[email protected]"):
args.append(self.define("CMAKE_C_FLAGS_RELEASE", "-O1"))
args.append(self.define("CMAKE_CXX_FLAGS_RELEASE", "-O1"))
args.append(self.define("CMAKE_C_FLAGS_RELWITHDEBINFO", "-O1"))
args.append(self.define("CMAKE_CXX_FLAGS_RELWITHDEBINFO", "-O1"))
return args

0 comments on commit 668313a

Please sign in to comment.