| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # IMPORTANT: | 5 # IMPORTANT: |
| 6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
| 7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
| 8 { | 8 { |
| 9 # Variables expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
| 10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
| (...skipping 6218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6229 '-fsanitize=cfi-unrelated-cast', | 6229 '-fsanitize=cfi-unrelated-cast', |
| 6230 ], | 6230 ], |
| 6231 'xcode_settings': { | 6231 'xcode_settings': { |
| 6232 'OTHER_CFLAGS': [ | 6232 'OTHER_CFLAGS': [ |
| 6233 '-fsanitize=cfi-vcall', | 6233 '-fsanitize=cfi-vcall', |
| 6234 '-fsanitize=cfi-derived-cast', | 6234 '-fsanitize=cfi-derived-cast', |
| 6235 '-fsanitize=cfi-unrelated-cast', | 6235 '-fsanitize=cfi-unrelated-cast', |
| 6236 '-fsanitize-blacklist=<(cfi_blacklist)', | 6236 '-fsanitize-blacklist=<(cfi_blacklist)', |
| 6237 ], | 6237 ], |
| 6238 }, | 6238 }, |
| 6239 }], |
| 6240 ['_toolset=="target" and _type!="static_library"', { |
| 6241 'xcode_settings': { |
| 6242 'OTHER_LDFLAGS': [ |
| 6243 '-fsanitize=cfi-vcall', |
| 6244 '-fsanitize=cfi-derived-cast', |
| 6245 '-fsanitize=cfi-unrelated-cast', |
| 6246 ], |
| 6247 }, |
| 6248 }], |
| 6249 ], |
| 6250 }, |
| 6251 }], |
| 6252 ['cfi_vptr==1 and OS=="win"', { |
| 6253 'target_defaults': { |
| 6254 'target_conditions': [ |
| 6255 ['_toolset=="target"', { |
| 6239 'msvs_settings': { | 6256 'msvs_settings': { |
| 6240 'VCCLCompilerTool': { | 6257 'VCCLCompilerTool': { |
| 6241 'AdditionalOptions': [ | 6258 'AdditionalOptions': [ |
| 6242 # TODO(pcc): Use regular -fsanitize=* flags here once clang-cl | 6259 # TODO(pcc): Use regular -fsanitize=* flags here once clang-cl |
| 6243 # supports LTO. | 6260 # supports LTO. |
| 6244 '-Xclang', | 6261 '-Xclang', |
| 6245 '-fsanitize=cfi-vcall', | 6262 '-fsanitize=cfi-vcall', |
| 6246 '-Xclang', | 6263 '-Xclang', |
| 6247 '-fsanitize=cfi-derived-cast', | 6264 '-fsanitize=cfi-derived-cast', |
| 6248 '-Xclang', | 6265 '-Xclang', |
| 6249 '-fsanitize=cfi-unrelated-cast', | 6266 '-fsanitize=cfi-unrelated-cast', |
| 6250 '-Xclang', | 6267 '-Xclang', |
| 6251 '-fsanitize-trap=cfi-vcall', | 6268 '-fsanitize-trap=cfi-vcall', |
| 6252 '-Xclang', | 6269 '-Xclang', |
| 6253 '-fsanitize-trap=cfi-derived-cast', | 6270 '-fsanitize-trap=cfi-derived-cast', |
| 6254 '-Xclang', | 6271 '-Xclang', |
| 6255 '-fsanitize-trap=cfi-unrelated-cast', | 6272 '-fsanitize-trap=cfi-unrelated-cast', |
| 6256 '-Xclang', | 6273 '-Xclang', |
| 6257 '-fsanitize-blacklist=<(cfi_blacklist)', | 6274 '-fsanitize-blacklist=<(cfi_blacklist)', |
| 6258 '-Xclang', | 6275 '-Xclang', |
| 6259 '-fsanitize-blacklist=../../<(make_clang_dir)/lib/clang/<!(pyt
hon <(DEPTH)/tools/clang/scripts/update.py --print-clang-version)/cfi_blacklist.
txt', | 6276 '-fsanitize-blacklist=../../<(make_clang_dir)/lib/clang/<!(pyt
hon <(DEPTH)/tools/clang/scripts/update.py --print-clang-version)/cfi_blacklist.
txt', |
| 6260 ], | 6277 ], |
| 6261 }, | 6278 }, |
| 6262 }, | 6279 }, |
| 6263 }], | 6280 }], |
| 6264 ['_toolset=="target" and _type!="static_library"', { | |
| 6265 'xcode_settings': { | |
| 6266 'OTHER_LDFLAGS': [ | |
| 6267 '-fsanitize=cfi-vcall', | |
| 6268 '-fsanitize=cfi-derived-cast', | |
| 6269 '-fsanitize=cfi-unrelated-cast', | |
| 6270 ], | |
| 6271 }, | |
| 6272 }], | |
| 6273 ], | 6281 ], |
| 6274 }, | 6282 }, |
| 6275 }], | 6283 }], |
| 6276 ], | 6284 ], |
| 6277 'xcode_settings': { | 6285 'xcode_settings': { |
| 6278 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! | 6286 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! |
| 6279 # This block adds *project-wide* configuration settings to each project | 6287 # This block adds *project-wide* configuration settings to each project |
| 6280 # file. It's almost always wrong to put things here. Specify your | 6288 # file. It's almost always wrong to put things here. Specify your |
| 6281 # custom xcode_settings in target_defaults to add them to targets instead. | 6289 # custom xcode_settings in target_defaults to add them to targets instead. |
| 6282 | 6290 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6336 # settings in target dicts. SYMROOT is a special case, because many other | 6344 # settings in target dicts. SYMROOT is a special case, because many other |
| 6337 # Xcode variables depend on it, including variables such as | 6345 # Xcode variables depend on it, including variables such as |
| 6338 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6346 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 6339 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6347 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 6340 # files to appear (when present) in the UI as actual files and not red | 6348 # files to appear (when present) in the UI as actual files and not red |
| 6341 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6349 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 6342 # and therefore SYMROOT, needs to be set at the project level. | 6350 # and therefore SYMROOT, needs to be set at the project level. |
| 6343 'SYMROOT': '<(DEPTH)/xcodebuild', | 6351 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 6344 }, | 6352 }, |
| 6345 } | 6353 } |
| OLD | NEW |