-
Notifications
You must be signed in to change notification settings - Fork 61
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
Make unit.core.exe compile with MSVC #1460
Conversation
I have used the following compiler:
and compile options:
|
Looks good. A few remarks:
This probably have to be merged with the fix from #1458
This is somethign which is an oversight. There is a fix for this in an upcoming PR so this is OK for now.
Guess it was some old habits
Good catch
Would you mind to file an issue at https://github.com/jfalcou/tts/issues ? |
as a rather naive user of MSVC, are those flags somehow classics ? If yes, we may need to update |
As expected, you hit the "ambiguous |
#1458 is merged, so I guess you can rebase |
Out of the compile options only
The options It seems that The The options |
ef97492
to
6ae9141
Compare
OK so I guess you need to update the compielrs.cmake file so the appveyor CI can use those options |
OK, first world problem, we hit the 1hr compile time limit on AppVeyor. I'll setup a windows machine next week so we can self-host the tests. Alternatively, we may try to edit the appveyor.yml to compiel in Debug to save on compile time, thsi will probably requires /bigObj too |
#1461 is tryign to make AppVeyor more happy |
Looked through, looks good so far |
#1461 is merged, woudl you mind rebasing if now appveyor is happy in term of compile time ? |
6ae9141
to
5d2aa5b
Compare
We still hit the limitations. Trying to see what we can do before I can setup a proper self hosted windows machine |
@Tradias woudl you mind modifying the appveyor.yml file so we have this:
? EDIT: woopsies on forgetting core |
oh wait, I thought we just add -j 2 to the build, not removing the core.exe sorry |
In the long run you should consider to link all tests into one executable, at least for CI builds. That is significantly faster, especially on Windows (where we don't have high-speed linkers like mold) |
Yeah that's somethign I was thinking about. We could move to GA with theire 6h limit but I fear they don't have the proper version of MSVC. |
I mean, we tried to reduce the number of binaries, right? We even did unity builds which were supposed fto be big time faster. We got no speedups |
I am gonna merge a PR that move our MSVC tests on Github Actions. THe version of the compiler is OK and we have a 6h limits. |
It may be too soon, got some more error than anticipated. I'll gonna review the code and see when GA windows got updated |
You mean regarding https://github.com/jfalcou/eve/actions/runs/3572457982/jobs/6005370261 ? I can take a look at that too. |
a3be3eb
to
ecf8488
Compare
Yeah, I am hacking at it. Looks like same simplifcation that you already did. |
And oh, the core tests have liek few errors so that's encouraging! |
value_type_t
it now prefers nestedT::value_type
over range/iterator. Not sure whether this will have a negative effect on the other modules.include(CTest)
is not necessary to run tests with ctest, it just clutters the project with unnecessary targets.There is also an issue in https://github.com/jfalcou/tts/blob/main/include/tts/tts.hpp#L943 which can create a
std::uniform_int_distribution<uint64_t>
from -10 to +10 which become 18446744073709551606 to 10, which triggers an assertion in MSVC:Resolves a part of #1236