Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2016 Google Inc. | 1 # Copyright 2016 Google Inc. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 declare_args() { | 6 declare_args() { |
| 7 ar = "ar" | 7 ar = "ar" |
| 8 cc = "cc" | 8 cc = "cc" |
| 9 cxx = "c++" | 9 cxx = "c++" |
| 10 } | 10 } |
| 11 | 11 |
| 12 config("nortti") { | |
|
mtklein
2016/08/03 20:06:50
no-rtti or no_rtti?
hal.canary
2016/08/03 21:36:00
Done. no_rtti matches chrome use.
| |
| 13 cflags_cc = [ | |
| 14 "-fno-rtti", | |
| 15 ] | |
| 16 } | |
| 17 | |
| 12 config("default") { | 18 config("default") { |
| 13 cflags = [ | 19 cflags = [ |
| 14 "-g", | 20 "-g", |
| 15 "-fstrict-aliasing", | 21 "-fstrict-aliasing", |
| 16 "-fPIC", | 22 "-fPIC", |
| 17 "-fvisibility=hidden", | 23 "-fvisibility=hidden", |
| 18 | 24 |
| 19 "-Werror", | 25 "-Werror", |
| 20 "-Wall", | 26 "-Wall", |
| 21 "-Wextra", | 27 "-Wextra", |
| 22 "-Winit-self", | 28 "-Winit-self", |
| 23 "-Wpointer-arith", | 29 "-Wpointer-arith", |
| 24 "-Wsign-compare", | 30 "-Wsign-compare", |
| 25 "-Wvla", | 31 "-Wvla", |
| 26 | 32 |
| 27 "-Wno-deprecated-declarations", | 33 "-Wno-deprecated-declarations", |
| 28 "-Wno-unused-parameter", | 34 "-Wno-unused-parameter", |
| 29 ] | 35 ] |
| 30 cflags_cc = [ | 36 cflags_cc = [ |
| 31 "-std=c++11", | 37 "-std=c++11", |
| 32 "-fno-exceptions", | 38 "-fno-exceptions", |
| 33 "-fno-rtti", | |
| 34 "-fno-threadsafe-statics", | 39 "-fno-threadsafe-statics", |
| 35 "-fvisibility-inlines-hidden", | 40 "-fvisibility-inlines-hidden", |
| 36 | 41 |
| 37 "-Wnon-virtual-dtor", | 42 "-Wnon-virtual-dtor", |
| 38 ] | 43 ] |
| 39 } | 44 } |
| 40 | 45 |
| 41 config("release") { | 46 config("release") { |
| 42 cflags = [ "-Os" ] | 47 cflags = [ "-Os" ] |
| 43 defines = [ "NDEBUG" ] | 48 defines = [ "NDEBUG" ] |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 121 } | 126 } |
| 122 | 127 |
| 123 tool("stamp") { | 128 tool("stamp") { |
| 124 command = "touch {{output}}" | 129 command = "touch {{output}}" |
| 125 } | 130 } |
| 126 | 131 |
| 127 tool("copy") { | 132 tool("copy") { |
| 128 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" | 133 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" |
| 129 } | 134 } |
| 130 } | 135 } |
| OLD | NEW |