Bug 271962
| Summary: | Linker error when logging ViewportConfiguration to TextStream in Release configuration | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Abrar Rahman Protyasha <a_protyasha> |
| Component: | WebCore Misc. | Assignee: | Abrar Rahman Protyasha <a_protyasha> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | a_protyasha, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Abrar Rahman Protyasha
When building in Release configuration, I get a linker error if I try to invoke WebCore::operator<<(WTF::TextStream&, WebCore::ViewConfiguration const&). The linker error reads:
```
Undefined symbols for architecture arm64e:
"WebCore::operator<<(WTF::TextStream&, WebCore::ViewportConfiguration const&)", referenced from:
WebCore::ViewportConfiguration::setContentsSize(WebCore::IntSize const&) in ViewportConfiguration.o
ld: symbol(s) not found for architecture arm64e
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
```
... which is a consequence of placing the relevant operator<< overload definitions behind `!LOG_DISABLED`.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/125713559>
Abrar Rahman Protyasha
Pull request: https://github.com/WebKit/WebKit/pull/26672
EWS
Committed 276925@main (59cedf7135bc): <https://commits.webkit.org/276925@main>
Reviewed commits have been landed. Closing PR #26672 and removing active labels.