Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 7bf928dfd13023e7f950aa62ff45bc1ab2c1bb9a..ab8742d5a6bb1c2c715b92537736505c95d9828d 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -1923,6 +1923,11 @@ |
}], |
], |
}], |
+ |
+ ['OS=="win" and clang==1', { |
+ 'chromium_win_pch': 0, |
+ }], |
+ |
# The seccomp-bpf sandbox is only supported on three architectures |
# currently. |
# Do not disable seccomp_bpf anywhere without talking to |
@@ -2551,6 +2556,11 @@ |
'VCCLCompilerTool': { 'WarnAsError': 'false' }, |
} |
}], |
+ ['clang==1', { |
+ 'msvs_settings': { |
+ 'VCCLCompilerTool': { 'WarnAsError': 'false' }, |
+ } |
+ }], |
], |
}], |
# TODO(darin): Unfortunately, some third_party code depends on base. |
@@ -4657,6 +4667,53 @@ |
} |
}], |
], |
+ 'conditions': [ |
+ ['clang==1', { |
+ # Building with Clang on Windows is a work in progress and very |
+ # experimental. See crbug.com/82385. |
+ 'VCCLCompilerTool': { |
+ 'WarnAsError': 'false', |
+ 'RuntimeTypeInfo': 'false', |
+ 'AdditionalOptions': [ |
+ '/fallback', |
+ |
+ # Many files use intrinsics without including this header. |
+ # TODO(hans): Fix those files, or move this to sub-GYPs. |
+ '/FIIntrin.h', |
+ |
+ # TODO(hans): Make this list shorter eventually. |
+ '-Qunused-arguments', |
+ '-Wno-c++11-compat-deprecated-writable-strings', |
+ '-Wno-char-subscripts', |
+ '-Wno-deprecated-declarations', |
+ '-Wno-deprecated-register', |
+ '-Wno-empty-body', |
+ '-Wno-enum-conversion', |
+ '-Wno-incompatible-pointer-types', |
+ '-Wno-logical-op-parentheses', |
+ '-Wno-microsoft', |
+ '-Wno-missing-braces', |
+ '-Wno-msvc-include', |
+ '-Wno-null-dereference', |
+ '-Wno-overloaded-virtual', |
+ '-Wno-parentheses', |
+ '-Wno-pointer-sign', |
+ '-Wno-reorder', |
+ '-Wno-return-type-c-linkage', |
+ '-Wno-self-assign', |
+ '-Wno-switch', |
+ '-Wno-tautological-compare', |
+ '-Wno-unknown-pragmas', |
+ '-Wno-unsequenced', |
+ '-Wno-unused-function', |
+ '-Wno-unused-private-field', |
+ '-Wno-unused-value', |
+ '-Wno-unused-variable', |
+ '-ferror-limit=1', |
+ ], |
+ }, |
+ }], |
+ ], |
}, |
}, |
}], |