Skip to content

Add support for Windows ARM64#4586

Merged
bk2204 merged 1 commit into
git-lfs:mainfrom
dennisameling:windows-arm64
Aug 23, 2021
Merged

Add support for Windows ARM64#4586
bk2204 merged 1 commit into
git-lfs:mainfrom
dennisameling:windows-arm64

Conversation

@dennisameling

Copy link
Copy Markdown
Contributor

Follow-up PR on #4584

Go 1.17 added support for the Windows ARM64 build target. This PR adds that support to Git LFS, including the required CI + installer logic.

The installer correctly recognizes ARM64 and writes to the Program Files folder (not Program Files (x86)):

image

The installed executable is native ARM64 indeed:

image

PS C:\Program Files\Git LFS> .\git-lfs
git-lfs/2.13.0 (GitHub; windows arm64; go 1.17)

Go 1.17 added support for building for Windows arm64. This commit adds
that support to Git LFS, including the required CI + installer logic.
Comment thread git-lfs_windows_arm64.go
//go:build windows && arm64
// +build windows,arm64

//go:generate goversioninfo -arm=true

@dennisameling dennisameling Aug 18, 2021

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The -arm flag needs to be defined explicitly when building for Windows ARM64. Support for this was added a few days ago: josephspurrier/goversioninfo#51. If you know a more efficient way of doing this rather than creating a new .go file, by all means 😊

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't have a better suggestion. We practically never modify those files, so the burden of adding one more should be negligible.

@bk2204 bk2204 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hey,

Thanks for the patch. I'm especially delighted you put fixes into the installer script, which is an area I'm not very familiar with. I had a few questions here, but overall I feel good about this change and I think once those are answered we should be good to go.

Comment thread git-lfs_windows_arm64.go
//go:build windows && arm64
// +build windows,arm64

//go:generate goversioninfo -arm=true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't have a better suggestion. We practically never modify those files, so the burden of adding one more should be negligible.

Comment thread Makefile
Comment thread script/windows-installer/inno-setup-git-lfs-installer.iss

@bk2204 bk2204 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks good. Thanks again for the patch.

@bk2204
bk2204 merged commit 03db6b2 into git-lfs:main Aug 23, 2021
dennisameling added a commit to dennisameling/dugite-native that referenced this pull request Nov 26, 2024
Git LFS has supported Windows arm64 since 2021. Let's add it to the dependencies, now that Git itself also support it.

Ref: git-lfs/git-lfs#4586
Signed-off-by: Dennis Ameling <[email protected]>
zakharovmaksym00-hub added a commit to zakharovmaksym00-hub/dugite-native that referenced this pull request May 21, 2026
Git LFS has supported Windows arm64 since 2021. Let's add it to the dependencies, now that Git itself also support it.

Ref: git-lfs/git-lfs#4586
Signed-off-by: Dennis Ameling <[email protected]>
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