| 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 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 compiler_prefix = "" | 22 compiler_prefix = "" |
| 23 } | 23 } |
| 24 | 24 |
| 25 config("no_rtti") { | 25 config("no_rtti") { |
| 26 cflags_cc = [ "-fno-rtti" ] | 26 cflags_cc = [ "-fno-rtti" ] |
| 27 } | 27 } |
| 28 | 28 |
| 29 config("default") { | 29 config("default") { |
| 30 cflags = [ | 30 cflags = [ |
| 31 "-O1", |
| 31 "-g", | 32 "-g", |
| 32 "-fstrict-aliasing", | 33 "-fstrict-aliasing", |
| 33 "-fPIC", | 34 "-fPIC", |
| 34 "-fvisibility=hidden", | 35 "-fvisibility=hidden", |
| 35 | 36 |
| 36 "-Werror", | 37 "-Werror", |
| 37 "-Wall", | 38 "-Wall", |
| 38 "-Wextra", | 39 "-Wextra", |
| 39 "-Winit-self", | 40 "-Winit-self", |
| 40 "-Wpointer-arith", | 41 "-Wpointer-arith", |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 } | 192 } |
| 192 | 193 |
| 193 tool("stamp") { | 194 tool("stamp") { |
| 194 command = "touch {{output}}" | 195 command = "touch {{output}}" |
| 195 } | 196 } |
| 196 | 197 |
| 197 tool("copy") { | 198 tool("copy") { |
| 198 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} &&
cp -af {{source}} {{output}})" | 199 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} &&
cp -af {{source}} {{output}})" |
| 199 } | 200 } |
| 200 } | 201 } |
| OLD | NEW |