Skip to content

Commit

Permalink
Don't use cross on x86-64 Linux host for i586 or i686 Linux GNU/mus…
Browse files Browse the repository at this point in the history
…l targets
  • Loading branch information
autarch committed Jan 21, 2025
1 parent 52839d9 commit 74eaa6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

- Fixed a bug where this action would attempt to use `cross` when compiling for an ARM Linux target
on an ARM Linux host.
- When compiling for an i586 or i686 Linux GNU or musl target on x86-64 Linux, this action will no
longer use `cross.`

## 1.0.0 - 2025-01-11

Expand Down
2 changes: 1 addition & 1 deletion set-cross-compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def check_needs_cross(target: str) -> bool:

# Check for x86_64 Linux targets on x86_64 Linux host
if (
re.search(r"x86_64.+linux-(?:gnu|musl)", target)
re.search(r"(?:x86_64|i586|i686).+linux-(?:gnu|musl)", target)
and "x86_64" in system_info
and "linux" in system_info
):
Expand Down

0 comments on commit 74eaa6d

Please sign in to comment.