haraken, can you please take a look? This seems to be the least bad fix.
To view, visit change 727980. To unsubscribe, or for help writing mail filters, visit settings.
Daniel Bratell uploaded patch set #3 to this change.
Fix Windows jumbo compilation by excluding the jpeg decoder
The jpeg decoder uses libjpeg_turbo which uses a "boolean" type
defined to be int. At the same time Windows has "boolean" type
which is unsigned char. If those headers meet in a
translation unit you get compilation errors.
An alternative fix would be to redefine libjpeg_turbo to use
unsigned char for its boolean type.
Bug: 775979
Change-Id: I268e0890dfc2fae79d0abe54bbd7bf5c0c23226f
---
M third_party/WebKit/Source/platform/BUILD.gn
1 file changed, 18 insertions(+), 8 deletions(-)
To view, visit change 727980. To unsubscribe, or for help writing mail filters, visit settings.
I'm not really happy but I agree that this would be the least bad fix. LGTM.
Patch set 3:Code-Review +1
Patch set 3:Commit-Queue +2
Patch set 3:Code-Review +1
Commit Bot merged this change.
Fix Windows jumbo compilation by excluding the jpeg decoder
The jpeg decoder uses libjpeg_turbo which uses a "boolean" type
defined to be int. At the same time Windows has "boolean" type
which is unsigned char. If those headers meet in a
translation unit you get compilation errors.
An alternative fix would be to redefine libjpeg_turbo to use
unsigned char for its boolean type.
Bug: 775979
Change-Id: I268e0890dfc2fae79d0abe54bbd7bf5c0c23226f
Reviewed-on: https://chromium-review.googlesource.com/727980
Reviewed-by: Kentaro Hara <har...@chromium.org>
Reviewed-by: Bruce Dawson <bruce...@chromium.org>
Commit-Queue: Daniel Bratell <bra...@opera.com>
Cr-Commit-Position: refs/heads/master@{#510155}
---
M third_party/WebKit/Source/platform/BUILD.gn
1 file changed, 18 insertions(+), 8 deletions(-)
diff --git a/third_party/WebKit/Source/platform/BUILD.gn b/third_party/WebKit/Source/platform/BUILD.gn
index 6871e69..1704419 100644
--- a/third_party/WebKit/Source/platform/BUILD.gn
+++ b/third_party/WebKit/Source/platform/BUILD.gn
@@ -1467,16 +1467,26 @@
get_target_outputs(":instrumentation_probes") +
get_target_outputs(":runtime_enabled_features")
- if (is_win && is_component_build) {
- # https://crbug.com/764823 - Mixing certain //url/ headers and
- # using url::RawCanonOutputT<char> in one translation unit breaks
- # the Windows component build. These files use RawCanonOutput.
+ if (is_win) {
jumbo_excluded_sources = [
- "LinkHash.cpp",
- "weborigin/KURL.cpp",
- "weborigin/OriginAccessEntry.cpp",
- "weborigin/SecurityOrigin.cpp",
+ # https://crbug.com/775979 - Uses libjpeg_turbo which uses a
+ # "boolean" typedef which is different (int) from the Windows
+ # standard "boolean" typedef (unsigned char), resulting in
+ # compilation errors when both are joined in a translation unit.
+ "image-decoders/jpeg/JPEGImageDecoder.cpp",
]
+
+ if (is_component_build) {
+ # https://crbug.com/764823 - Mixing certain //url/ headers and
+ # using url::RawCanonOutputT<char> in one translation unit breaks
+ # the Windows component build. These files use RawCanonOutput.
+ jumbo_excluded_sources += [
+ "LinkHash.cpp",
+ "weborigin/KURL.cpp",
+ "weborigin/OriginAccessEntry.cpp",
+ "weborigin/SecurityOrigin.cpp",
+ ]
+ }
}
configs += [
":blink_platform_pch",
To view, visit change 727980. To unsubscribe, or for help writing mail filters, visit settings.