Skip to content
This repository was archived by the owner on Sep 28, 2025. It is now read-only.

Allow user to specify FUNCHOOK_CPU explicitly#19

Merged
kubo merged 1 commit intokubo:masterfrom
rumblehhh:patch-2
Nov 25, 2020
Merged

Allow user to specify FUNCHOOK_CPU explicitly#19
kubo merged 1 commit intokubo:masterfrom
rumblehhh:patch-2

Conversation

@rumblehhh
Copy link
Copy Markdown
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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants