Skip to content

fix Win64 build#949

Open
BrendenWalker wants to merge 10 commits intoMurmele:masterfrom
BrendenWalker:build_fixes_for_win_mac
Open

fix Win64 build#949
BrendenWalker wants to merge 10 commits intoMurmele:masterfrom
BrendenWalker:build_fixes_for_win_mac

Conversation

@BrendenWalker
Copy link
Copy Markdown

@BrendenWalker BrendenWalker commented Mar 21, 2026

Summary

  • Stabilized the Windows CI build path and packaging flow.
  • Fixed Windows/MSVC compatibility and compile issues in CMake and source.
  • Resolved libssh2 integration issues (libssh2 vs ssh2 import-lib naming).
  • Added NSIS installation in CI so CPack can produce Windows installers.
  • Ensured Windows packaging includes required libssh2.dll runtime dependency.
  • Cleaned up workflow deprecations/annotations (including set-output replacement).

Brenden Walker added 5 commits March 20, 2026 18:18
fix libssh2 import lib name for windows build
handle libssh2 or ssh2 libraries
Remove clang compiler settings from build workflow
Update build workflow to specify C and C++ compilers for Windows build
Refactor CMakeLists.txt to conditionally apply compiler options for non-MSVC builds
Refactor type casting in Git-related classes for consistency and clarity
clang style fix
Add NOMINMAX definition for Windows compatibility and adjust exception filter declaration
Skip wincred helper for MSVC builds in CMakeLists.txt to ensure compatibility with cl.exe
@Murmele
Copy link
Copy Markdown
Owner

Murmele commented Mar 24, 2026

Thank you very much!

cd build/release
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DUPDATE_TRANSLATIONS=ON -DGITTYUP_CI_TESTS=ON ${{ env.CMAKE_FLAGS }} ${{ matrix.env.cmake_flags }} ../..

- name: Fix libssh2 import lib name (Windows)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Is it possible to do this directly in cmake?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Good call.. certainly makes more sense in cmake. First pass I was trying to get it working and I find it easier to think about this type of change in build as my brain doesn't like to parse makefiles ;-)

Took a shot at it, build action running on my personal repo now.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

After revision build passed. How's it look now?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I will have a look tomorrow again regarding the cmake changes. Maybe we can enable MacOs as well

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Is there a build for Apple silicon? I didn't see anything commented out.. and the Intel Mac build seems to at least finish. Not sure what help I can be there.

Brenden Walker and others added 3 commits March 24, 2026 06:41
Brenden Walker added 2 commits March 25, 2026 14:10
…for better type safety and update related usages in RepoView.
@BrendenWalker BrendenWalker force-pushed the build_fixes_for_win_mac branch from 3ed7b29 to b1b5e5f Compare March 26, 2026 00:47
Comment on lines -3 to +12
add_compile_options(-Werror=switch)
if(NOT MSVC)
add_compile_options(-Werror=switch)
endif()
# Uncomment to compile with more warnings add_compile_options(-Wall) Uncomment
# to compile with even more warnings add_compile_options(-Wextra) TODO:
# currently there are too many unused parameters which overwhelms the warning
# output with `-Wall`. So let's leave fixing these for later.
add_compile_options(-Wno-unused-parameter)
if(NOT MSVC)
add_compile_options(-Wno-unused-parameter)
endif()
Copy link
Copy Markdown
Owner

@Murmele Murmele Mar 28, 2026

Choose a reason for hiding this comment

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

Can you fix those instead of disabling it? Rest looks fine

@Murmele
Copy link
Copy Markdown
Owner

Murmele commented Mar 31, 2026

Maybe the following comment could be interesting as well? b89301d#commitcomment-181010141

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