Closed sogaiu closed 11 months ago
Probably not related at all, but I had problems to compile spork on Windows not that long ago because of the versions of VS tooling. 2016 vs 2019.
Thanks for sharing your thoughts.
In this case, locally I was using VisualStudio 2022, so as you suggested, perhaps the version is not the issue here.
looks like bakpakin made sogaiu's suggestions here -> https://github.com/janet-lang/janet/commit/169bd812c9183865b2399a8eaeab6aad238856c5
We're trying to update the version of Janet used in TIC-80 and are encountering issues for Windows builds in CI.
When trying to build via TIC-80's cmake generated files, the following sort of output is observed:
via: https://github.com/nesbox/TIC-80/actions/runs/6223953191/job/16891060122?pr=2306#step:4:1692
I noticed that some other source files under Janet's
src/core
have includes for the Windows case, so I tried the following patch tosrc/core/state.c
:This made the build work for TIC-80 on Windows (at least in a local setup meant to mimick relevant aspects of GitHub's CI).
Is the above sort of change superfluous [1]?
cc: @AlecTroemel
[1] I don't understand why Janet itself (outside of the TIC-80 context) builds fine without it (via an appropriate Native command prompt -- I verified this) and the build fails for TIC-80. Both invoke
build_win.bat
...so I guess something may be different about TIC-80's setup but I have not succeeded in determining what that is.