summaryrefslogtreecommitdiffstats
path: root/build/config/BUILDCONFIG.gn
diff options
context:
space:
mode:
Diffstat (limited to 'build/config/BUILDCONFIG.gn')
-rw-r--r--build/config/BUILDCONFIG.gn14
1 files changed, 10 insertions, 4 deletions
diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn
index 22b9dca..3df338d 100644
--- a/build/config/BUILDCONFIG.gn
+++ b/build/config/BUILDCONFIG.gn
@@ -329,7 +329,15 @@ if (is_win) {
"//build/config/win:sdk",
"//build/config/win:unicode",
]
-} else if (is_linux) {
+}
+if (is_posix) {
+ _native_compiler_configs += [
+ "//build/config/gcc:no_exceptions",
+ "//build/config/gcc:symbol_visibility_hidden",
+ ]
+}
+
+if (is_linux) {
_native_compiler_configs += [ "//build/config/linux:sdk", ]
} else if (is_mac) {
_native_compiler_configs += [ "//build/config/mac:sdk", ]
@@ -338,9 +346,7 @@ if (is_win) {
} else if (is_android) {
_native_compiler_configs += [ "//build/config/android:sdk", ]
}
-if (!is_win) {
- _native_compiler_configs += [ "//build/config/gcc:symbol_visibility_hidden" ]
-}
+
if (is_clang) {
_native_compiler_configs += [
"//build/config/clang:find_bad_constructs",