-
-
Notifications
You must be signed in to change notification settings - Fork 1
fix: support for Windows (build script failures, runtime failures, updates) #206
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@lumirlumir Could we please have this merged asap? Let me know if you need anything else Also, thank you for making this! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
@@ Coverage Diff @@
## main #206 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 11 11
Lines 439 439
=========================================
Hits 439 439 Continue to review full report in Codecov by Sentry.
|
Hello, @avdaredevil Thank you for submitting the PR! I’ll review this bug within the next 24 hours, so I kindly ask for your patience until then :) |
Labels have been automatically applied based on the conventional commit types.🏷️ |
Labels have been automatically applied based on the conventional commit types.🏷️ |
I understand why I tried to reproduce this bug, but the +++ I cannot accept new binaries for the following two reasons:
Additionally, since we use Clang, CMake, and Ninja for building binaries, MinGW32, which is typically used for GNU GCC, is not required in our case. +++ So, what if you update only the I believe this issue may not be related to the binaries themselves, but rather to the |
Hey @lumirlumir thanks for getting back to me!
My Conclusion: Your binary fails because it's missing those 3 critical DLL files. So you can either statically link them within the EXE when you build it, or make sure to package them with your release file Now regarding
Completely agree with the downgrade point, but I don't know how to test github actions, so if you could change my PR to, either:
then we could move forward, and you can remove my exe file :) |
…tic linking flags on Windows This PR is the follow up PR of #206 Added static link for `libgcc_s_seh-1.dll`, `libwinpthread-1.dll`, and `libstdc++-6.dll`. This updates only affect Windows binary.
… static linking flags on Windows (#208) This PR is the follow up PR of #206 Added static link for `libgcc_s_seh-1.dll`, `libwinpthread-1.dll`, and `libstdc++-6.dll`. This updates only affect Windows binary. --- This pull request includes a change to the `.github/workflows/llvm-build-bump-pr.yml` file to enhance the build process for `clang-format`. The most important change is the addition of static linking flags to the CMake build command. Build process enhancement: * [`.github/workflows/llvm-build-bump-pr.yml`](diffhunk://#diff-d608eb75b383338d789a8908995e47499214a7cc55a847771ad73800464b18b0L372-R372): Modified the CMake build command to include `-DCMAKE_EXE_LINKER_FLAGS="-static -static-libgcc -static-libstdc++"` for static linking.
Thanks, @avdaredevil. Your explanation helped me a lot. Now I can say that this PR manifests two problems:
Here's how I will fix this problem:
Since you have enabled the "Allow edits from maintainers" option, I can fix these issues myself. However, before proceeding, I wanted to check if you plan to fix this PR yourself. The placement of the If you have access to the GitHub Actions for this repository(maybe it's possible since it's public), here is the new Windows binary. Please take a look and test it first. If the issue still persists, let me know so I can fix it again. https://github.com/lumirlumir/npm-clang-format-node/actions/runs/13087036390 The above one is the newly built Windows binary. |
packages/clang-format-node/src/bin/cfn-win32-x64/clang-format.exe
Outdated
Show resolved
Hide resolved
…up of #206) (#209) This PR is the follow up PR of #206. Built new LLVM binaries. --- This PR bumps the LLVM version from `llvmorg-19.1.7` to `llvmorg-19.1.7` using LLVM binary that was built automatically. 🎉 See [Actions](https://github.com/lumirlumir/npm-clang-format-node/actions/runs/13087036390) for more details.
Hey @lumirlumir, hope you had a great weekend! My goal was to help with making sure this issue is fixed with the library, so if you're cool with it, I am okay with you fixing this PR with:
Just a final note, I'd appreciate this PR being merged in, so if you could make the changes directly here that would be excellent! |
I'm sorry, I tried to use and merge this PR, but I encountered a "permission denied" error as shown in the screenshot above. So, unfortunately, I had to create another branch and use your commit there. Your contribution will be credited with the Thank you for your kind words, and have a great week ahead :)
|
Windows Fixes
postinstall
scripts while retaining functionalityshx
to achieve cross-platform shell commandsNote to author, you CANNOT do a mingw32 build without then linking the cygwin dlls, like: https://unix.stackexchange.com/questions/633316/how-to-statically-link-missing-libgcc-s-seh-1-dll-and-libstdc-6-dll-dlls-for-9/633321#633321
Summary
Couldn't use your library as-is on windows. The old
clang-format
library works for me, but it misses the binaries for linux-arm64 which is what our build servers use. Our code needs to work in both environments, hence this change!How did you test this change?
Resolved Issues