Skip to content

Add support vs26 ci - #1394

Merged
dNechita merged 3 commits into
analogdevicesinc:mainfrom
RubenNatanael:add_support_vs26_ci
Mar 13, 2026
Merged

dNechita merged 3 commits into
analogdevicesinc:mainfrom
RubenNatanael:add_support_vs26_ci

Conversation

@RubenNatanael

Copy link
Copy Markdown
Collaborator

PR Description

  • Please replace this comment with a summary of your changes, and add any context
    necessary to understand them. List any dependencies required for this change.
  • To check the checkboxes below, insert a 'x' between square brackets (without
    any space), or simply check them after publishing the PR.
  • If you changes include a breaking change, please specify dependent PRs in the
    description and try to push all related PRs simultaneously.

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have conducted a self-review of my own code changes
  • I have commented new code, particularly complex or unclear areas
  • I have checked that I did not introduce new warnings or errors (CI output)
  • I have checked that components that use libiio did not get broken
  • I have updated the documentation accordingly (GitHub Pages, READMEs, etc)

Signed-off-by: Ruben Mujdei <ruben.mujdei@analog.com>
@RubenNatanael
RubenNatanael force-pushed the add_support_vs26_ci branch 6 times, most recently from 6cba1c1 to 9740bd9 Compare February 12, 2026 12:29
@RubenNatanael
RubenNatanael marked this pull request as draft February 27, 2026 05:37
@RubenNatanael
RubenNatanael force-pushed the add_support_vs26_ci branch 13 times, most recently from f61591f to a22e67a Compare March 11, 2026 12:30
Comment thread CI/publish_deps.ps1 Resolved
Comment thread CI/publish_deps.ps1 Outdated
cp .\msvcp140.dll $env:BUILD_ARTIFACTSTAGINGDIRECTORY
cp .\vcruntime140.dll $env:BUILD_ARTIFACTSTAGINGDIRECTORY
}elseif ( "$Env:COMPILER" -eq "Visual Studio 18 2026" ) {
$VS_version="VS2019"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should be "VS2026", right?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VS_version refers to the libusb Visual Studio version, which should be set to VS2022 for compilers version 2022 or newer. To avoid confusion, this variable has been renamed from VS_version to USB_VS_version.

Comment thread CI/publish_deps.ps1
cp .\vcruntime140.dll $env:BUILD_ARTIFACTSTAGINGDIRECTORY
}elseif ( "$Env:COMPILER" -eq "Visual Studio 18 2026" ) {
$VS_version="VS2019"
cd 'C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Redist\MSVC\14.29.30133\x64\Microsoft.VC142.CRT'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

VC142 is for MSVC2019. Shouldn't it be VC145?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

That's right, but for some reason doing that returns an error, check this pipeline

Comment thread CI/publish_deps.ps1 Outdated
}elseif ( "$Env:COMPILER" -eq "Visual Studio 18 2026" ) {
$VS_version="VS2019"
cd 'C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Redist\MSVC\14.29.30133\x64\Microsoft.VC142.CRT'
cp .\msvcp140.dll $env:BUILD_ARTIFACTSTAGINGDIRECTORY

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I noticed that for any of the versions (2019, 2022, 2026), vcruntime140.dll is being copied. Maybe double check this is ok.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

As discussed, vcruntime140.dll and msvcp140.dll are the standard libraries for the C++ and C runtimes. Because these files share the same name for backward compatibility, the specific version copied depends entirely on the directory targeted by the previous cd command.

Signed-off-by: Ruben Mujdei <ruben.mujdei@analog.com>
@RubenNatanael

Copy link
Copy Markdown
Collaborator Author

Artifacts created by build 2026 tested in a client app and works fine.

Signed-off-by: Ruben Mujdei <Ruben.Mujdei@analog.com>
@RubenNatanael
RubenNatanael marked this pull request as ready for review March 11, 2026 15:01
@dNechita
dNechita merged commit e98438c into analogdevicesinc:main Mar 13, 2026
31 checks passed
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.

2 participants