-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix win build #72
fix win build #72
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a CI run for x86 windows
Note: for VS2017, Cmake will default to build for Win32, refer to [here](https://cmake.org/cmake/help/latest/generator/Visual%20Studio%2015%202017.html). If you are building for x64 php, you can set environment variable as follow to let cmake pick x64 compiler. | ||
|
||
```bat | ||
set CMAKE_GENERATOR=Visual Studio 15 2017 | ||
set CMAKE_GENERATOR_PLATFORM=x64 | ||
``` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I never needed to do this on my machine
I believe using the recommended scripts like phpsdk-vs16-x64.bat
from php-sdk-binary-tools sets this up to work correctly...
Maybe just revert changes to the README we'll fix it up later once we get a better grip on all this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from the customer issue here and what I tested with the instruction from our README.
""" From VS2017 Command Prompt
> C:\php-sdk\phpsdk-vc15-x64.bat
I met the issue that Cmake picked up x86 as generator platform. You can check the log from the customer issue. The phpsdk-vc15-x64.bat
doesn't set the target platform correctly I believe.
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.