Skip to content

Commit ad59ad8

Browse files
committed
Use host_platform in v1 recipes
1 parent f2059b5 commit ad59ad8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

conda_forge_tick/migrators/cross_compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def migrate(self, recipe_dir: str, attrs: "AttrsTypedDict", **kwargs: Any) -> No
355355
new_lines.extend(
356356
[
357357
" " * nspaces
358-
+ "- if: build_platform != target_platform\n",
358+
+ "- if: build_platform != host_platform\n",
359359
" " * nspaces + " then:\n",
360360
" " * nspaces + " - cross-r-base ${{ r_base }}\n",
361361
]

tests/test_v1_yaml/cross_compile/rbase_recipe_correct.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ build:
2424

2525
requirements:
2626
build:
27-
- if: build_platform != target_platform
27+
- if: build_platform != host_platform
2828
then:
2929
- cross-r-base ${{ r_base }}
3030
- r-rlang

0 commit comments

Comments
 (0)