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

msvc: drop support for VS2005 and older #16004

Closed
wants to merge 8 commits into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Jan 15, 2025

  • cmake: assume large file support (VS2005+ / _fseeki64())
  • config-win32.h: assume large file support (VS2005+ / _fseeki64())
  • config-win32.h: assume HAVE_LONGLONG (VS2003+)
  • config-win32.h: assume 64-bit time_t (VS2005+)
  • config-win32.h: assume VS2008+
  • cmake: use multi-threaded/parallel compilation (VS2008+)
  • curl_setup.h: require multi-threading MSVC CRT (~VS2005+)
  • curl_setup.h: hard fail for unsupported MSVC versions.
    Authored-by: Jay Satiro
  • winbuild: bump minimum version

Follow-up to 308437a #15992
Ref: #15972


w/o whitespace: https://github.com/curl/curl/pull/16004/files?w=1

@vszakats vszakats added build Windows Windows-specific tidy-up labels Jan 15, 2025
@vszakats vszakats changed the title msvc: drop support for pre-VS2008 versions msvc: drop support for VS2005 and older Jan 15, 2025
@vszakats vszakats marked this pull request as draft January 15, 2025 01:50
@github-actions github-actions bot added the CI Continuous Integration label Jan 15, 2025
@vszakats vszakats marked this pull request as ready for review January 15, 2025 02:45
@vszakats vszakats marked this pull request as draft January 15, 2025 02:48
@vszakats vszakats marked this pull request as ready for review January 15, 2025 03:02
@jay
Copy link
Member

jay commented Jan 15, 2025

I suggest hard fail so the user knows what's up, for example in curl_setup:

/* Visual Studio 2008 is the minimum Visual Studio version we support.
   Workarounds for older versions of Visual Studio have been removed. */
#if defined(_MSC_VER) && (_MSC_VER < 1500)
#error "Ancient versions of Visual Studio are no longer supported due to bugs."
#endif

Also the commit message should have a reference to our discussion in #15972

vszakats added a commit to vszakats/curl that referenced this pull request Jan 15, 2025
@vszakats vszakats added the feature-window A merge of this requires an open feature window label Jan 16, 2025
@vszakats
Copy link
Member Author

Pushing this to the next feature window. This allows to have the current
release as the last one with support for the old versions, including the
_fseeki64 fix that landed just recently. Unless there is any objection.

vszakats added a commit to vszakats/curl that referenced this pull request Jan 16, 2025
@vszakats vszakats force-pushed the w-msvc-drop-old branch 2 times, most recently from 924f58b to 43dee1e Compare January 20, 2025 21:49
vszakats added a commit to vszakats/curl that referenced this pull request Jan 20, 2025
vszakats added a commit to vszakats/curl that referenced this pull request Jan 22, 2025
vszakats added a commit to vszakats/curl that referenced this pull request Jan 22, 2025
vszakats added a commit to vszakats/curl that referenced this pull request Feb 16, 2025
@vszakats vszakats closed this in e0fd579 Feb 21, 2025
@vszakats vszakats deleted the w-msvc-drop-old branch February 21, 2025 11:01
vszakats added a commit to vszakats/curl that referenced this pull request Mar 3, 2025
vszakats added a commit that referenced this pull request Mar 4, 2025
To avoid this warning/error (seen with Ninja generator):
```
clang-cl: warning: argument unused during compilation: '-MP' [-Wunused-command-line-argument]
```

Curious why CI missed it. Maybe due to using a Visual Studio generator.

Regression from e0fd579 #16004
Closes #16550
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build CI Continuous Integration feature-window A merge of this requires an open feature window tidy-up Windows Windows-specific
Development

Successfully merging this pull request may close these issues.

3 participants