-
Notifications
You must be signed in to change notification settings - Fork 40
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
[build] New script build.cmd
for compilation on Windows
#285
base: master
Are you sure you want to change the base?
[build] New script build.cmd
for compilation on Windows
#285
Conversation
Translate shell script `build.sh` into Windows, aiming to build `NAR.exe` and changing variable `NoWarn` to fit the platform environments - +`-Wno-implicit-function-declaration -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast` - -`-Wno-dollar-in-identifier-extension` Environment of testing: - Windows version: Windows 11 - GCC version: gcc (x86_64-posix-seh) 12.2.0 - GCC source: MinGW - Terminal: CMD, PowerShell - Compilation target
build.cmd
for compilation on Windowsbuild.cmd
for compilation on Windows
Thank you! This PR is a good fit for the Portability branch: |
It is good that it does not need Cygwin but only MinGW now. |
I agree. This script was originally written by me to test ONA in Windows 11 with MinGW, In this case, the script may still be incomplete, so instead of putting it in the
This |
For example, if you compile directly with
|
I agree. Portability branch has no NetworkNAR, so this issue would resolve itself there and could simplify the compilation script potentially (to remove any POSIX reference at least) |
Feature
Translated shell script
build.cmd
for WindowsNAR.exe
NoWarn
to fit the platform environments-Wno-implicit-function-declaration -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast
-Wno-dollar-in-identifier-extension
Environment of testing
.\NAR.exe
Previews
Compilation on Terminal
CMD & PowerShell:
Runtime