You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cross compiling for windows is good but creating a cross platform code will be more convenient for end users.
I have created a variable is_windows which check wheter this script is running on windows or not. Most of the windows user use mingw so i used gcc instead of cc.
-- The boolean check for building on windows platformlocalis_windows=_G.package.config:sub(1, 1) =="\\"-- The C compiler used to compile and link the generated C source file.localCC=os.getenv("CC") or (is_windowsand"gcc" or"cc")
uname is not available in windows which causes this error.
'uname' is not recognized as an internal or external command,
operable program or batch file.
cross compiling for windows
cross compiling for windows is good but creating a cross platform code will be more convenient for end users.
I have created a variable
is_windows
which check wheter this script is running on windows or not. Most of the windows user use mingw so i usedgcc
instead ofcc
.uname
is not available in windows which causes this error.to solve this error I used this code.
also we cannot check a command by
/dev/null
in windows. so I just replaced previous code with this.The text was updated successfully, but these errors were encountered: