summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-25 17:05:59 -0700
committerGitHub <noreply@github.com>2018-10-25 17:05:59 -0700
commit59acd8d1ac454d8371234e46188f0184bd870218 (patch)
tree5ad3a62bea29557f9cc47304cfc5d69ea94951aa
parent00082352e9536ebac4d8b7cab4ba95252233c1fe (diff)
Turn on treat_warnings_as_errors (#1086)
Fixes #374
-rw-r--r--.gn2
-rw-r--r--build_extra/rust/BUILD.gn3
2 files changed, 4 insertions, 1 deletions
diff --git a/.gn b/.gn
index b1d17e13e..94ff452ac 100644
--- a/.gn
+++ b/.gn
@@ -32,7 +32,7 @@ default_args = {
is_component_build = false
symbol_level = 1
- treat_warnings_as_errors = false
+ treat_warnings_as_errors = true
rust_treat_warnings_as_errors = true
# https://cs.chromium.org/chromium/src/docs/ccache_mac.md
diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn
index 10f4da6a2..e40a19b03 100644
--- a/build_extra/rust/BUILD.gn
+++ b/build_extra/rust/BUILD.gn
@@ -776,6 +776,9 @@ component("ring_primitives") {
"$ring_root/pregenerated/x86_64-mont-nasm.obj",
"$ring_root/pregenerated/x86_64-mont5-nasm.obj",
]
+
+ # Disable warning: '_addcarry_u64' is not a recognized builtin
+ cflags = [ "-Wno-ignored-pragma-intrinsic" ]
}
include_dirs = [ "$ring_root/include/" ]
}