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

cmake: reconstruct the cmake files and extract one common module #10468

Closed
wants to merge 1 commit into from

Conversation

tone-zhang
Copy link
Contributor

The PR comes from cmake: fix the build on AArch64 #10427 because #10427 is polluted by myself.
I'm sorry for the inconvenience. And thanks a lot for your patience.

Extract the CheckCompileTargets.cmake module out of
src/CMakeLists.txt. It is a used to generate some the compiler options
according to the CPU type.
Update the CMakeLists.txt files to invoke the common module

Signed-off-by: tone.zhang tone.zhang@linaro.org

@wjwithagen
Copy link
Contributor

@tone-zhang
LGTM

@wjwithagen
Copy link
Contributor

Next step would be to exclude the ARM part if running on amd64, because one way or another ARM_NEON ends up being defined on FreeBSD. Which results in tries to build code that is not compilable.

@tone-zhang
Copy link
Contributor Author

@wjwithagen Thanks for you review.

@tone-zhang
Copy link
Contributor Author

@tchaikov Kefu, the PR #10427 is closed when I forced push the "cherry-pick"ed commit to tone-zhang/tone_cmake1 branch. I need more git practice to avoid such silly error. So could you please move to the new PR and have a review? Thanks!
Sorry for the inconvenience.

@tone-zhang
Copy link
Contributor Author

@dmick @cbodley @alimaredia Hi all, I have changed the PR #10427 to this one. Could you please have a review? Thanks a lot!

Extract the CheckCompileTargets.cmake module out of
src/CMakeLists.txt. It is a used to generate some the compiler options
according to the CPU type.
Update the CMakeLists.txt files to invoke the common module

Signed-off-by: tone.zhang <tone.zhang@linaro.org>
@tchaikov
Copy link
Contributor

tchaikov commented Sep 2, 2016

@tone-zhang sorry for the latency, i found that we need to pass -DINTEL* to get the SIMD instruction generated for the gf-complete .

#10956 is posted to address this. as it is based on your work, so i added your Signed-off in the commit message.

@tchaikov tchaikov closed this Sep 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants