Start massaging the GYP files for building with clang on Windows

BUG=82385
TBR=cpu

Review URL: https://codereview.chromium.org/146043003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246874 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
hans@chromium.org 2014-01-24 13:26:35 +00:00
Родитель c5846a908e
Коммит cf1d2c1c59
1 изменённых файлов: 57 добавлений и 0 удалений

Просмотреть файл

@ -1924,6 +1924,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
@ -2532,6 +2537,11 @@
'VCCLCompilerTool': { 'WarnAsError': 'false' },
}
}],
['clang==1', {
'msvs_settings': {
'VCCLCompilerTool': { 'WarnAsError': 'false' },
}
}],
],
}],
# TODO(darin): Unfortunately, some third_party code depends on base.
@ -4644,6 +4654,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',
],
},
}],
],
},
},
}],