WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
190121
[WTF]
r236617
broke JSCOnly build on Windows
https://bugs.webkit.org/show_bug.cgi?id=190121
Summary
[WTF] r236617 broke JSCOnly build on Windows
Koby
Reported
2018-10-01 02:46:44 PDT
Hi, After updating my copy of WebKit, the Windows build of JSCOnly port fails with the following error: c:\togithub\webkit-original\webkit\source\wtf\wtf\generic\mainthreadgeneric.cpp(33): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [C :\togithub\WebKit-Original\webkit\WebKitBuild\Release\Source\WTF\wtf\WTF.vcxproj] Looking at the file, it seems that since
r236617
MainThreadGeneric.cpp always includes pthread.h, which is a problem since it isn't available on Windows (on the JSCOnly port uses MainThreadGeneric.cpp on all platforms). What do you think? should this be fixed in MainThreadGeneric or should the JSCOnly use the Windows implementation of MainThread? Thanks, Koby
Attachments
Patch
(1.47 KB, patch)
2018-10-01 04:46 PDT
,
Koby
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2018-10-01 03:13:23 PDT
(In reply to Koby from
comment #0
)
> Hi, > After updating my copy of WebKit, the Windows build of JSCOnly port fails > with the following error: > c:\togithub\webkit-original\webkit\source\wtf\wtf\generic\mainthreadgeneric. > cpp(33): fatal error C1083: Cannot open include file: 'pthread.h': No such > file or directory [C > :\togithub\WebKit-Original\webkit\WebKitBuild\Release\Source\WTF\wtf\WTF. > vcxproj] > > Looking at the file, it seems that since
r236617
MainThreadGeneric.cpp > always includes pthread.h, which is a problem since it isn't available on > Windows (on the JSCOnly port uses MainThreadGeneric.cpp on all platforms). > > What do you think? should this be fixed in MainThreadGeneric or should the > JSCOnly use the Windows implementation of MainThread? > > Thanks, > Koby
Use MainThreadWin instead in Window.
Koby
Comment 2
2018-10-01 03:30:20 PDT
Thanks! it seems to compile. I'll test it and upload a patch here. If I'm moving MainThread to the Windows implementation, is there anything else I need to change? Like the WorkQueueGeneric which is currently used (vs WorkQueueWin)?
Yusuke Suzuki
Comment 3
2018-10-01 03:33:21 PDT
(In reply to Koby from
comment #2
)
> Thanks! it seems to compile. I'll test it and upload a patch here. > If I'm moving MainThread to the Windows implementation, is there anything > else I need to change? Like the WorkQueueGeneric which is currently used (vs > WorkQueueWin)?
Just using MainThreadWin.cpp instead of MainThreadGeneric.cpp is OK. It should work.
Koby
Comment 4
2018-10-01 04:46:49 PDT
Created
attachment 351236
[details]
Patch
Koby
Comment 5
2018-10-01 04:47:11 PDT
Added a patch :)
Yusuke Suzuki
Comment 6
2018-10-01 04:50:39 PDT
Comment on
attachment 351236
[details]
Patch r=me
WebKit Commit Bot
Comment 7
2018-10-01 05:33:12 PDT
Comment on
attachment 351236
[details]
Patch Clearing flags on attachment: 351236 Committed
r236655
: <
https://trac.webkit.org/changeset/236655
>
WebKit Commit Bot
Comment 8
2018-10-01 05:33:14 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 9
2018-10-01 05:34:24 PDT
<
rdar://problem/44906628
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug