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

Enable the build for iOS simulator. #5211

Merged
merged 1 commit into from
Nov 6, 2017

Conversation

Xreki
Copy link
Contributor

@Xreki Xreki commented Oct 30, 2017

fix #5212


set(CMAKE_REQUIRED_FLAGS_RETAINED ${CMAKE_REQUIRED_FLAGS})

# Check MMX
set(CMAKE_REQUIRED_FLAGS ${MMX_FLAG})
set(MMX_FOUND_EXITCODE 1 CACHE STRING "Result from TRY_RUN" FORCE)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To fix the cmake error:

-- Performing Test MMX_FOUND
CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately:
   MMX_FOUND_EXITCODE (advanced)
For details see /Users/liuyiqun01/work/github/Paddle/build_paddle/build_ios_x86_64/TryRunResults.cmake

@Xreki Xreki merged commit bba6223 into PaddlePaddle:develop Nov 6, 2017
@Xreki Xreki deleted the ios_build_simulator branch November 14, 2018 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support the cross-compile for iOS simulator
2 participants