Conversation
|
I don't think there's been a single contributor pull request accepted, looking at the history. @sscalpone Are you going to merge (not now, but eventually) this or was this a waste of time? |
|
A few contributor requests have been merged for README.md and CMakefile.txt files. Flang needs to have a CLA for source-file changes. We are working to create this CLA now. We will review on flang-dev list soon. |
Windows Fixes
WIP Windows
|
I should mention that the timing functions don't actually work; I'm not sure what they're for. |
|
You might or might not need |
More windows fixes
|
We haven't pushed out Windows implementation files to github yet. I'm working on a pull request to get the windows sources into the repo. With hope, they'll start showing up tomorrow (Tuesday) to support your efforts. Do you have changes for flang-compiler/clang too? |
|
No. Changes were not required there. I implemented some of the functions in a "quick" (eg. nonworking) way just to get the compilation going. Then I triaged those functions so that I could come back to them later (#285, #283). @isuruf Had to fix CMake so that it would call the linker correctly. I really wish for the CLA so that there's no duplication of work. |
|
Also, would highly recommend merging #284. We spent some time on that. |
| __fort_rrecv(ioproc, &off, sizeof(off), 1, __UCHAR); | ||
| } else { | ||
| off = 0; | ||
| fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0666); |
There was a problem hiding this comment.
Should be open(path, O_WRONLY | O_CREAT | O_TRUNC);.
| strcpy(host, p); | ||
| #else | ||
| strcpy(host, "localhost"); | ||
| #endif |
There was a problem hiding this comment.
Should be
#include <Winsock2.h>
char host[128] = "";
gethostname(host, sizeof(host));
|
If anybody is interested, here's the status now. |
|
@isuruf did you add my |
|
Also, |
No, I didn't. I'll do that once I get some time. |
|
One more interesting bit is that there shouldn't be an Line 28 in bd6802a |
|
It should be |
|
|
|
Actually the |
|
I've pushed some fixes to my branch and the errors now are, |
|
FYI: @diorcety has a branch [1] that ported flang to windows in his own fork as well. I don't know how far he got but I think he did very similar changes to yours. Maybe your work can benefit from one another: |
|
He doesn't have sbrk either! |
|
That branch has almost all of our fixes and some not in this PR. |
|
@albertziegenhagel It would be helpful if you wrote functions for some of those symbols. |
|
Looks like no one responded to his first PR and he gave up. That is sad. |
|
I may have time to look into some of the functions this weekend. It would be interesting to see how mature the windows files that @sscalpone mentioned are. I don't think it makes sense to do all of the work twice in the end. |
|
Switching the branch... |
|
Continues in #288. |
Attached are some fixes for the windows functions.