| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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 config("libunwind_config") { | 5 config("libunwind_config") { |
| 6 # ValueAsBitPattern in Unwind-EHABI.cpp is only used on Debug builds. | 6 # ValueAsBitPattern in Unwind-EHABI.cpp is only used on Debug builds. |
| 7 cflags = [ "-Wno-unused-function" ] | 7 cflags = [ "-Wno-unused-function" ] |
| 8 } | 8 } |
| 9 | 9 |
| 10 source_set("libunwind") { | 10 source_set("libunwind") { |
| 11 visibility = [ "//buildtools/third_party/libc++abi" ] | 11 visibility = [ "//buildtools/third_party/libc++abi" ] |
| 12 defines = [ "_LIBUNWIND_DISABLE_VISIBILITY_ANNOTATIONS" ] |
| 12 sources = [ | 13 sources = [ |
| 13 # C++ sources | 14 # C++ sources |
| 14 "trunk/src/Unwind-EHABI.cpp", | 15 "trunk/src/Unwind-EHABI.cpp", |
| 15 "trunk/src/libunwind.cpp", | 16 "trunk/src/libunwind.cpp", |
| 16 | 17 |
| 17 # C sources | 18 # C sources |
| 18 "trunk/src/Unwind-sjlj.c", | 19 "trunk/src/Unwind-sjlj.c", |
| 19 "trunk/src/UnwindLevel1-gcc-ext.c", | 20 "trunk/src/UnwindLevel1-gcc-ext.c", |
| 20 "trunk/src/UnwindLevel1.c", | 21 "trunk/src/UnwindLevel1.c", |
| 21 | 22 |
| 22 # ASM sources | 23 # ASM sources |
| 23 "trunk/src/UnwindRegistersRestore.S", | 24 "trunk/src/UnwindRegistersRestore.S", |
| 24 "trunk/src/UnwindRegistersSave.S", | 25 "trunk/src/UnwindRegistersSave.S", |
| 25 ] | 26 ] |
| 26 configs -= [ | 27 configs -= [ |
| 27 "//build/config/compiler:chromium_code", | 28 "//build/config/compiler:chromium_code", |
| 28 "//build/config/compiler:no_rtti", | 29 "//build/config/compiler:no_rtti", |
| 29 "//build/config/gcc:no_exceptions", | 30 "//build/config/gcc:no_exceptions", |
| 30 ] | 31 ] |
| 31 configs += [ | 32 configs += [ |
| 32 "//build/config/compiler:no_chromium_code", | 33 "//build/config/compiler:no_chromium_code", |
| 33 "//build/config/compiler:rtti", | 34 "//build/config/compiler:rtti", |
| 34 "//buildtools/third_party/libc++:config", | 35 "//buildtools/third_party/libc++:config", |
| 35 | 36 |
| 36 # Must be after no_chromium_code | 37 # Must be after no_chromium_code |
| 37 ":libunwind_config", | 38 ":libunwind_config", |
| 38 ] | 39 ] |
| 39 } | 40 } |
| OLD | NEW |