| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 libs += [ "unwind" ] | 98 libs += [ "unwind" ] |
| 99 } | 99 } |
| 100 } | 100 } |
| 101 | 101 |
| 102 if (is_linux) { | 102 if (is_linux) { |
| 103 libs = [ "pthread" ] | 103 libs = [ "pthread" ] |
| 104 } | 104 } |
| 105 } | 105 } |
| 106 | 106 |
| 107 config("release") { | 107 config("release") { |
| 108 cflags = [ "-Os" ] | 108 cflags = [ "-O3" ] |
| 109 defines = [ "NDEBUG" ] | 109 defines = [ "NDEBUG" ] |
| 110 } | 110 } |
| 111 | 111 |
| 112 config("executable") { | 112 config("executable") { |
| 113 if (is_mac) { | 113 if (is_mac) { |
| 114 ldflags = [ "-Wl,-rpath,@loader_path/." ] | 114 ldflags = [ "-Wl,-rpath,@loader_path/." ] |
| 115 } else if (is_linux) { | 115 } else if (is_linux) { |
| 116 ldflags = [ "-Wl,-rpath,\$ORIGIN" ] | 116 ldflags = [ "-Wl,-rpath,\$ORIGIN" ] |
| 117 } | 117 } |
| 118 } | 118 } |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 } | 189 } |
| 190 | 190 |
| 191 tool("stamp") { | 191 tool("stamp") { |
| 192 command = "touch {{output}}" | 192 command = "touch {{output}}" |
| 193 } | 193 } |
| 194 | 194 |
| 195 tool("copy") { | 195 tool("copy") { |
| 196 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} &&
cp -af {{source}} {{output}})" | 196 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} &&
cp -af {{source}} {{output}})" |
| 197 } | 197 } |
| 198 } | 198 } |
| OLD | NEW |