WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
218453
libwebrtc.dylib relies on dead code stripping (fails to link if dead code is not stripped in Debug builds)
https://bugs.webkit.org/show_bug.cgi?id=218453
Summary
libwebrtc.dylib relies on dead code stripping (fails to link if dead code is ...
David Kilzer (:ddkilzer)
Reported
2020-11-02 10:49:10 PST
libwebrtc.dylib relies on dead code stripping (fails to link if dead code is not stripped in Debug builds). Found (rediscovered) while working on:
Bug 218315
: WebKit should support building with variants other than debug and normal <
https://bugs.webkit.org/show_bug.cgi?id=218315
> See FIXME in Source/ThirdParty/libwebrtc/Configurations/Base.xcconfig.
Attachments
Patch
(35.79 KB, patch)
2020-11-04 01:06 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(51.79 KB, patch)
2020-11-27 01:04 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(191.08 KB, patch)
2020-11-27 01:58 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2020-11-02 11:04:36 PST
What is the build instruction to trigger that issue?
David Kilzer (:ddkilzer)
Comment 2
2020-11-03 14:19:23 PST
(In reply to youenn fablet from
comment #1
)
> What is the build instruction to trigger that issue?
Rough steps to reproduce (I didn't try): 1. Apply patch from
Bug 218315
. 2. In Source/ThirdParty/libwebrtc/Configurations/Base.xcconfig, change "DEAD_CODE_STRIPPING = YES" to "DEAD_CODE_STRIPPING = NO": // FIXME:
Bug 218453
: libwebrtc.dylib fails to link if this value is changed in libwebrtc.xcconfig or changed here for all targets. - DEAD_CODE_STRIPPING = YES; + DEAD_CODE_STRIPPING = NO; 3. Build Release or Debug. (I don't think it matters which if "DEAD_CODE_STRIPPING = NO" for both.)
David Kilzer (:ddkilzer)
Comment 3
2020-11-03 14:21:28 PST
(In reply to David Kilzer (:ddkilzer) from
comment #2
)
> (In reply to youenn fablet from
comment #1
) > > What is the build instruction to trigger that issue? > > Rough steps to reproduce (I didn't try):
Specifically, this is how I reproduced it while working on
Bug 218315
, but I did not try it again before posting this info.
youenn fablet
Comment 4
2020-11-04 00:38:49 PST
Thanks, we are probably missing some files that are only used by code that got stripped. Hopefully, we just need to compile this missing files.
youenn fablet
Comment 5
2020-11-04 01:06:41 PST
Created
attachment 413144
[details]
Patch
Radar WebKit Bug Importer
Comment 6
2020-11-13 16:21:26 PST
<
rdar://problem/71389632
>
youenn fablet
Comment 7
2020-11-27 01:04:02 PST
Created
attachment 414920
[details]
Patch
youenn fablet
Comment 8
2020-11-27 01:58:33 PST
Created
attachment 414926
[details]
Patch
youenn fablet
Comment 9
2020-12-01 06:01:58 PST
Ping review
EWS
Comment 10
2020-12-01 09:46:20 PST
Committed
r270305
: <
https://trac.webkit.org/changeset/270305
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 414926
[details]
.
David Kilzer (:ddkilzer)
Comment 11
2020-12-01 10:17:25 PST
Thanks Youenn!
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