Skip to content

Commit

Permalink
fix: wrong target/build platform during rendering (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
hadim authored Oct 4, 2024
1 parent 815b31f commit cad50b6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/rattler_build_conda_compat/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ def version(self) -> str:
return version

def render_recipes(self, variants) -> List[Dict]:
platform_and_arch = f"{self.config.platform}-{self.config.arch}"
build_platform_and_arch = f"{self.config.platform}-{self.config.arch}"
target_platform_and_arch = f"{self.config.host_platform}-{self.config.host_arch}"

yaml = _yaml_object()
try:
with tempfile.NamedTemporaryFile(mode="w+") as outfile:
Expand All @@ -136,9 +138,9 @@ def render_recipes(self, variants) -> List[Dict]:
"--recipe",
self.path,
"--target-platform",
platform_and_arch,
target_platform_and_arch,
"--build-platform",
platform_and_arch,
build_platform_and_arch,
]

if variants:
Expand Down

0 comments on commit cad50b6

Please sign in to comment.