aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-08-03 15:08:04 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-03 15:08:04 -0700
commit19a9720978700a24efed8dda7e0935ea2b7338c4 (patch)
treea6415a2378e83fa3aa1c9eea915037d78762f47a /gn
parent4fd74aec9f6c68c66483bcc6735793440b1ba184 (diff)
GN: build sfntly, icu, harfbuzz
Diffstat (limited to 'gn')
-rw-r--r--gn/BUILD.gn5
-rw-r--r--gn/BUILDCONFIG.gn17
2 files changed, 14 insertions, 8 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn
index 5789aef48b..48bd90f639 100644
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -9,6 +9,10 @@ declare_args() {
cxx = "c++"
}
+config("no_rtti") {
+ cflags_cc = [ "-fno-rtti" ]
+}
+
config("default") {
cflags = [
"-g",
@@ -30,7 +34,6 @@ config("default") {
cflags_cc = [
"-std=c++11",
"-fno-exceptions",
- "-fno-rtti",
"-fno-threadsafe-statics",
"-fvisibility-inlines-hidden",
diff --git a/gn/BUILDCONFIG.gn b/gn/BUILDCONFIG.gn
index 681b15b83b..e2719c196e 100644
--- a/gn/BUILDCONFIG.gn
+++ b/gn/BUILDCONFIG.gn
@@ -40,29 +40,32 @@ template("component") {
}
# Default configs
-_default_configs = [ "//gn:default" ]
+default_configs = [
+ "//gn:default",
+ "//gn:no_rtti",
+]
if (!is_debug) {
- _default_configs += [ "//gn:release" ]
+ default_configs += [ "//gn:release" ]
}
set_defaults("executable") {
- configs = _default_configs + [ "//gn:executable" ]
+ configs = default_configs + [ "//gn:executable" ]
}
set_defaults("source_set") {
- configs = _default_configs
+ configs = default_configs
}
set_defaults("static_library") {
- configs = _default_configs
+ configs = default_configs
}
set_defaults("shared_library") {
- configs = _default_configs
+ configs = default_configs
}
set_defaults("component") {
- configs = _default_configs
+ configs = default_configs
}
# For now, we support GCC-like toolchains, including Clang.