Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect TARGET, CC, HOSTCC, FC automically when cross-compiling #129

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Dirreke
Copy link
Contributor

@Dirreke Dirreke commented Dec 1, 2024

Close #126

If OPENBLAS_{TARGET, CC, FC, HOSTCC} is not specified during cross-compilation, openblas-build will default to using the basic target that corresponds to the target architecture. However, please be advised that not all default targets are predefined and may not run correctly due to my limited knowledge of every potential target. The default values that are set are listed below:

"aarch64" => Some(Target::ARMV8),
"arm" => Some(Target::ARMV6),
"armv5te" => Some(Target::ARMV5),
"armv6" => Some(Target::ARMV6),
"armv7" => Some(Target::ARMV7),
"loongarch64" => Some(Target::LOONGSONGENERIC),
"mips64" => Some(Target::MIPS64_GENERIC),
"mips64el" => Some(Target::MIPS64_GENERIC),
"riscv64" => Some(Target::RISCV64_GENERIC),
"csky" => Some(Target::CK860FV),
"sparc" => Some(Target::SPARCV7),

This PR detect CC, HOSTCC by cc crate, and detect FC through CC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Set default CC, FC, TARGET... by using cc for cross-compilation
1 participant