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

Check for WIN32 rather than MSVC when building #379

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

asinghvi17
Copy link

This constraint is more general and occurs on all Windows platforms, where MSVC may not.

xref JuliaPackaging/Yggdrasil#9448, where we encountered this issue - the MSVC condition was not satisfied, but the build is on windows.

Copy link

google-cla bot commented Sep 18, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@jmr
Copy link
Member

jmr commented Sep 20, 2024

@asinghvi17 I can't merge this until you sign the CLA.

@asinghvi17
Copy link
Author

asinghvi17 commented Oct 10, 2024

Hey @jmr, I'd signed the CLA a while ago - did it go through? If the email address on this commit is causing issues I can also force-push to change it.

@jmr
Copy link
Member

jmr commented Oct 10, 2024

If the email addresses don't match, it won't work.

https://github.com/google/s2geometry/pull/379/checks?check_run_id=30313549872

@jmr
Copy link
Member

jmr commented Nov 8, 2024

@podsvirov @asinghvi17 when is WIN32 needed?

@podsvirov
Copy link
Contributor

On Windows value WIN32 defined for all compilers (cl, gcc, clang...), but value MSVC only for cl.

@@ -70,7 +70,7 @@ if (WITH_PYTHON)
find_package(Python3 COMPONENTS Interpreter Development)
endif()

if (MSVC)
if (WIN32)
# Use unsigned characters
add_definitions(-J)
Copy link
Member

Choose a reason for hiding this comment

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

These are compiler options, so isn't MSVC right? Do other compilers support the MSVC options? or maybe this should be MSVC or something?

@jmr
Copy link
Member

jmr commented Nov 8, 2024

@asinghvi17 What's this BinaryBuilder environment mentioned in JuliaPackaging/Yggdrasil#9448 (comment) ?

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.

3 participants