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

Unified Diff: build/config/chromecast/BUILD.gn

Issue 2808253003: [Chromecast] Make static_config a noop for clang builds (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/chromecast/BUILD.gn
diff --git a/build/config/chromecast/BUILD.gn b/build/config/chromecast/BUILD.gn
index 60cb52cc4b88d7ffd3c91c239a1e1607c2803b75..3c99eba50f0476312277ab50944f8fc3052786b6 100644
--- a/build/config/chromecast/BUILD.gn
+++ b/build/config/chromecast/BUILD.gn
@@ -7,20 +7,22 @@ import("//build/config/chromecast_build.gni")
assert(is_chromecast)
config("static_config") {
- ldflags = [
- # Don't allow visible symbols from libraries that contain
- # assembly code with symbols that aren't hidden properly.
- # http://b/26390825
- "-Wl,--exclude-libs=libffmpeg.a",
- ]
-
- if (!is_android) {
- ldflags += [
- # We want to statically link libstdc++/libgcc on Linux.
- # (On Android, libstdc++ and libgcc aren't used.)
- "-static-libstdc++",
- "-static-libgcc",
+ if (!is_clang) {
+ ldflags = [
+ # Don't allow visible symbols from libraries that contain
+ # assembly code with symbols that aren't hidden properly.
+ # http://b/26390825
+ "-Wl,--exclude-libs=libffmpeg.a",
]
gfhuang 2017/04/11 17:54:27 is this safe to remove?
wzhong 2017/04/11 17:57:41 No. Still needed for GCC build.
+
+ if (!is_android) {
+ ldflags += [
+ # We want to statically link libstdc++/libgcc on Linux.
+ # (On Android, libstdc++ and libgcc aren't used.)
+ "-static-libstdc++",
+ "-static-libgcc",
wzhong 2017/04/11 17:57:41 What is the implication in practice? Does clang t
bcf 2017/04/11 18:17:07 Yes, clang will take the flags. In practice this
+ ]
+ }
}
}
@@ -75,7 +77,7 @@ config("executable_config") {
config("shared_library_config") {
configs = [ ":ldconfig" ]
- if (!is_clang && current_cpu == "arm") {
+ if (current_cpu == "arm") {
configs += [ ":static_config" ]
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698