| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 { | 5 { |
| 6 'target_defaults': { | 6 'target_defaults': { |
| 7 'variables': { | 7 'variables': { |
| 8 'nacl_target': 0, | 8 'nacl_target': 0, |
| 9 }, | 9 }, |
| 10 'target_conditions': [ | 10 'target_conditions': [ |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 # We don't want to compile it PIC (or its cousin PIE), because | 282 # We don't want to compile it PIC (or its cousin PIE), because |
| 283 # it goes at an absolute address anyway, and because any kind | 283 # it goes at an absolute address anyway, and because any kind |
| 284 # of PIC complicates life for the x86-32 assembly code. We | 284 # of PIC complicates life for the x86-32 assembly code. We |
| 285 # append -fno-* flags here instead of using a 'cflags!' stanza | 285 # append -fno-* flags here instead of using a 'cflags!' stanza |
| 286 # to remove -f* flags, just in case some system's compiler | 286 # to remove -f* flags, just in case some system's compiler |
| 287 # defaults to using PIC for everything. | 287 # defaults to using PIC for everything. |
| 288 '-fno-pic', '-fno-PIC', | 288 '-fno-pic', '-fno-PIC', |
| 289 '-fno-pie', '-fno-PIE', | 289 '-fno-pie', '-fno-PIE', |
| 290 ], | 290 ], |
| 291 'cflags!': [ | 291 'cflags!': [ |
| 292 # TODO(glider): -fasan is deprecated. |
| 292 '-fasan', | 293 '-fasan', |
| 294 '-faddress-sanitizer', |
| 293 '-w', | 295 '-w', |
| 294 ], | 296 ], |
| 295 'conditions': [ | 297 'conditions': [ |
| 296 ['clang==1', { | 298 ['clang==1', { |
| 297 'cflags': [ | 299 'cflags': [ |
| 298 # Prevent llvm-opt from replacing my_bzero with a call | 300 # Prevent llvm-opt from replacing my_bzero with a call |
| 299 # to memset | 301 # to memset |
| 300 '-ffreestanding', | 302 '-ffreestanding', |
| 301 ], | 303 ], |
| 302 }], | 304 }], |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 'target_name': 'nacl_win64', | 407 'target_name': 'nacl_win64', |
| 406 'type': 'none', | 408 'type': 'none', |
| 407 'sources': [], | 409 'sources': [], |
| 408 }, | 410 }, |
| 409 ], | 411 ], |
| 410 }], | 412 }], |
| 411 ], | 413 ], |
| 412 }], | 414 }], |
| 413 ], | 415 ], |
| 414 } | 416 } |
| OLD | NEW |