summaryrefslogtreecommitdiff
path: root/gn
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-12-18 14:56:56 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-11-11 13:13:33 +0100
commit643d527cb35c689fb3fc64e0625335b84e9255b9 (patch)
treeef468dd08fe991ed09aa5f3cf561afb542353f81 /gn
parent00fa2cdc05292db6c198e772ed9c6fb7b78ebc3f (diff)
downloadqtwebengine-chromium-643d527cb35c689fb3fc64e0625335b84e9255b9.tar.gz
Disable dumb code
This dumb code has already been defanged in Chromium as it broke their own builds, but it is still causing trouble for us as it still fundamentally wrong. We can only reinstate if we stop tracking ico dependencies or fix rc.py to work on anything other than Google's setup. Change-Id: I089ed9997b6eafb1b927eb99854f0f38b87798c0 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
Diffstat (limited to 'gn')
-rw-r--r--gn/src/gn/binary_target_generator.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gn/src/gn/binary_target_generator.cc b/gn/src/gn/binary_target_generator.cc
index 485884e81bf..d5135f384a9 100644
--- a/gn/src/gn/binary_target_generator.cc
+++ b/gn/src/gn/binary_target_generator.cc
@@ -93,6 +93,7 @@ bool BinaryTargetGenerator::FillSources() {
bool ret = TargetGenerator::FillSources();
for (std::size_t i = 0; i < target_->sources().size(); ++i) {
const auto& source = target_->sources()[i];
+#if 0
switch (source.type()) {
case SourceFile::SOURCE_CPP:
case SourceFile::SOURCE_MODULEMAP:
@@ -120,6 +121,7 @@ bool BinaryTargetGenerator::FillSources() {
Target::GetStringForOutputType(target_->output_type()) +
". " + source.value() + " is not one of the valid types.");
}
+#endif
target_->source_types_used().Set(source.type());
}