Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / build / config / gcc / BUILD.gn
1 # Copyright 2014 The Chromium Authors. All rights reserved.\r
2 # Use of this source code is governed by a BSD-style license that can be\r
3 # found in the LICENSE file.\r
4 \r
5 # This config causes functions not to be automatically exported from shared\r
6 # libraries. By default, all symbols are exported but this means there are\r
7 # lots of exports that slow everything down. In general we explicitly mark\r
8 # which functiosn we want to export from components.\r
9 #\r
10 # Some third_party code assumes all functions are exported so this is separated\r
11 # into its own config so such libraries can remove this config to make symbols\r
12 # public again.\r
13 #\r
14 # See http://gcc.gnu.org/wiki/Visibility\r
15 config("symbol_visibility_hidden") {\r
16   # Note that -fvisibility-inlines-hidden is set globally in the compiler\r
17   # config since that can almost always be applied.\r
18   cflags = [ "-fvisibility=hidden" ]\r
19 }\r