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

Allow user to specify FUNCHOOK_CPU explicitly #19

Merged
merged 1 commit into from
Nov 25, 2020
Merged

Allow user to specify FUNCHOOK_CPU explicitly #19

merged 1 commit into from
Nov 25, 2020

Conversation

rumblehhh
Copy link
Contributor

Currently funchook attempts to determine FUNCHOOK_CPU using CMAKE_SYSTEM_PROCESSOR. This isn't particularly robust especially when you start working with various toolchains. CMAKE_SYSTEM_PROCESSOR doesn't seem to have a definitive list of accepted values i.e. for aarch64 I've seen aarch64/arm64/armv8/armv8_64.
Allowing the user of funchook to explicitly set FUNCHOOK_CPU seems like a safer option for some users. The alternative for an external user is to push/pop setting CMAKE_SYSTEM_PROCESSOR which isn't very nice.

Currently funchook attempts to determine FUNCHOOK_CPU using CMAKE_SYSTEM_PROCESSOR. This isn't particularly robust especially when you start working with various toolchains.  CMAKE_SYSTEM_PROCESSOR doesn't seem to have a definitive list of accepted values i.e. for aarch64 I've seen aarch64/arm64/armv8/armv8_64. 
Allowing the user of funchook to explicitly set FUNCHOOK_CPU seems like a safer option for some users. The alternative for an external user is to push/pop setting CMAKE_SYSTEM_PROCESSOR which isn't very nice.
@kubo kubo merged commit b961800 into kubo:master Nov 25, 2020
@kubo
Copy link
Owner

kubo commented Nov 25, 2020

Thanks. It seems reasonable.

@rumblehhh rumblehhh deleted the patch-2 branch November 25, 2020 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants