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
Allow to run unit-tests on Windows #2287
Allow to run unit-tests on Windows #2287
Conversation
// Windows specific copy of posixlib/time.h | ||
// Uses *_s variants of methods instead of *_r | ||
#if defined(_WIN32) | ||
#define _CRT_SECURE_NO_WARNINGS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really think we should consider just doing a clib
time API - We should have virtually all the time stuff in clib
and then just the posix specific in the posixlib
.
Both time APIs can access the same C code and we could just deprecate most of the Scala in posixlib
. You could then add just windows specific stuff in another interface as needed.
Do you think we should just address that in another PR and try it get it merged first?
4d50811
to
3e1c0ca
Compare
windowslib/src/main/scala/scala/scalanative/windows/util/Conversion.scala
Outdated
Show resolved
Hide resolved
windowslib/src/main/scala/scala/scalanative/windows/util/Conversion.scala
Outdated
Show resolved
Hide resolved
windowslib/src/main/scala/scala/scalanative/windows/util/HelperMethods.scala
Outdated
Show resolved
Hide resolved
ce35129
to
cd05441
Compare
cd05441
to
e75335e
Compare
This PR continues topic of Scala Native support for Windows. It adds platform-specific compact layer for java.net Sockets allowing to execute unit tests. It also adds proper implementation for required java.io methods. To limit the number of changes currently only smaller subset of tests testsExt was added to CI * Included testsExt tests in the CI * Added minimal java.net implementation * Added binding for time.h not POSIX compliment *_s methods used in Windows * Added minimal java.io.File implementation required for tests * Added bindings for required WinSock2 and FileAPI functions * Fixed parsing symbols in Stacktrace on Windows * Added -g to compilation and linking step on Windows to allow gathering stack traces. * Fixed java.util.Date to compile on Windows
This PR continues topic of Scala Native support for Windows. It adds platform-specific compact layer for
java.net
Sockets allowing to execute unit tests. It also adds proper implementation for requiredjava.io
methods. To limit the number of changes currently only smaller subset of teststestsExt
was added to CItestsExt
tests in the CIjava.net
implementationtime.h
not POSIX compliment*_s
methods used in Windowsjava.io.File
implementation required for tests-g
to compilation and linking step on Windows to allow gathering stack traces.java.util.Date
to compile on WindowsThis PR needs to be rebased onto #2281 to actually work.