Skip to content

Commit

Permalink
fix: add CXXFLAGS to run and dependent build environment
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc committed Jun 29, 2023
1 parent 2a2ac55 commit 40f10e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/dd4hep/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ class Dd4hep(BuiltinDd4hep):
sha256="2dde47795f8534fcbfb9454b3b729a5a758e2dc90b6bd9f5f8bdc8940e2da0f7",
when="@1.25.1",
)
@when('@1.25.1')
def setup_run_environment(self, env):
super().setup_run_environment(env)
env.set("CXXFLAGS", "-DDD4HEP_FIELD_TYPE_OVERRIDE=field_type")
@when('@1.25.1')
def setup_dependent_build_environment(self, env, dependent_spec):
super().setup_dependent_build_environment(env, dependent_spec)
env.set("CXXFLAGS", "-DDD4HEP_FIELD_TYPE_OVERRIDE=field_type")
patch(
"https://github.com/AIDASoft/DD4hep/commit/8693a29669d03dec5e06b61e6df7cc0df1e0aa5c.patch",
sha256="28fb1c17eb1c06c24b304511308fd3b0af708f2ba3aec3e4cb13d7da6abbc51c",
Expand Down

0 comments on commit 40f10e3

Please sign in to comment.