capstone
capstone copied to clipboard
Makefile: Improve Apple detection
__APPLE__
is always defined & set to 1 on Darwin.
__apple_build_version__
not available on older releases.
This change allows Capstone to build on OS X 10.4.
Note though that the Makefile build method is effectively deprecated and will be dropped in the future.
Understood. It would be a shame since cmake has such a high cost. I can build capstone 5.0.1 with GCC 4.0 on OS X 10.4, but cmake needs a C++11 compiler from cmake 3.10 onwards & may need an even more recent C++ compiler on current releases, so effectively that will become capstone's minimum requirement.
Just opened an issue where you can describe your use case. So we have tracked it somewhere (https://github.com/capstone-engine/capstone/issues/2264). @kabeor, please trigger the CI.
Thanks, I'll follow up there later on tonight when I have some time. Just popped in to ask if something is wrong on the CI side?
@Rot127 Is there something wrong with the CI here or have I missed where it's going wrong?
Yeah, something is broken currently.
No worries. Thanks for the sanity check. :)
https://github.com/capstone-engine/capstone/commit/6a55ef3bdadf606b79a954adad80a90913e6b519 should fix the CI, please push a commit to trigger it.
Done.
Cool, thanks!