conda-forge / vc-feedstock

A conda-smithy repository for vc.
BSD 3-Clause "New" or "Revised" License
4 stars 22 forks source link

VS2022 released #39

Closed h-vetinari closed 1 year ago

h-vetinari commented 3 years ago

Probably will be some time before this becomes relevant, but here's the announcement. Looks like the build is already templated enough that this shouldn't be too hard to add.

h-vetinari commented 2 years ago

@conda-forge/vc It would be pretty cool to have the most current VS version also available in conda-forge, if only to verify that certain things are compiler bugs (e.g. by testing vs2022 and finding things pass). Currently neck-deep in static initialization mess with MSVC + protobuf, and would like to rule out that it's "just" the MSVC version...

traversaro commented 2 years ago

Not a replacement to have a vs2022_win-64 package, but if you just need to compile a project with VS2022 for a test, a quick solution is to use the generator Visual Studio 17 2022, i.e. something like:

cmake -G"Visual Studio 17 2022" ..
cmake --build . --config Release 
cmake --install . --config Release

The main advantage of Visual Studio 17 2022 or similar generator is that they work fine in any command prompt, even if the related developer scripts have not been sourced.

h-vetinari commented 1 year ago

So nominally this was closed by https://github.com/conda-forge/vc-feedstock/pull/46, but it appears there are still some rough edges.

In https://github.com/conda-forge/prismatic_split-feedstock/pull/34, the main compiler CLI isn't being found:

CMake Error at D:/bld/prismatic_split_1672827794149/_build_env/Library/share/cmake-3.25/Modules/CMakeDetermineCCompiler.cmake:49 (message):
  Could not find compiler set in environment variable CC:

  cl.exe.
wolfv commented 1 year ago

I've used VC 2022 now, and it seems to work :) should we close this one?

h-vetinari commented 1 year ago

Yeah, sounds good!