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

fix win build #72

Merged
merged 2 commits into from
Nov 23, 2022
Merged

fix win build #72

merged 2 commits into from
Nov 23, 2022

Conversation

TingDaoK
Copy link
Contributor

@TingDaoK TingDaoK commented Nov 3, 2022

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.

@TingDaoK TingDaoK marked this pull request as ready for review November 3, 2022 22:20
Copy link
Contributor

@graebm graebm left a 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

Comment on lines +54 to +60
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
```

Copy link
Contributor

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?

Copy link
Contributor Author

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.

@TingDaoK TingDaoK merged commit 9049421 into main Nov 23, 2022
@TingDaoK TingDaoK deleted the fix-win branch November 23, 2022 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants