Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: third_party/libunwind/BUILD.gn

Issue 2946073002: Fix libc++ ARM build (Closed)
Patch Set: Condition on is_linux too Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/libc++abi/BUILD.gn ('k') | third_party/libunwind/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libunwind/BUILD.gn
diff --git a/third_party/libunwind/BUILD.gn b/third_party/libunwind/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..f58261ae91e40f177823669553b20ec52b5f386e
--- /dev/null
+++ b/third_party/libunwind/BUILD.gn
@@ -0,0 +1,39 @@
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+config("libunwind_config") {
+ # ValueAsBitPattern in Unwind-EHABI.cpp is only used on Debug builds.
+ cflags = [ "-Wno-unused-function" ]
+}
+
+source_set("libunwind") {
+ visibility = [ "//buildtools/third_party/libc++abi" ]
+ sources = [
+ # C++ sources
+ "trunk/src/Unwind-EHABI.cpp",
+ "trunk/src/libunwind.cpp",
+
+ # C sources
+ "trunk/src/Unwind-sjlj.c",
+ "trunk/src/UnwindLevel1-gcc-ext.c",
+ "trunk/src/UnwindLevel1.c",
+
+ # ASM sources
+ "trunk/src/UnwindRegistersRestore.S",
+ "trunk/src/UnwindRegistersSave.S",
+ ]
+ configs -= [
+ "//build/config/compiler:chromium_code",
+ "//build/config/compiler:no_rtti",
+ "//build/config/gcc:no_exceptions",
+ ]
+ configs += [
+ "//build/config/compiler:no_chromium_code",
+ "//build/config/compiler:rtti",
+ "//buildtools/third_party/libc++:config",
+
+ # Must be after no_chromium_code
+ ":libunwind_config",
+ ]
+}
« no previous file with comments | « third_party/libc++abi/BUILD.gn ('k') | third_party/libunwind/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698