summaryrefslogtreecommitdiffstats
path: root/third_party/mach_override/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/mach_override/BUILD.gn')
-rw-r--r--third_party/mach_override/BUILD.gn31
1 files changed, 14 insertions, 17 deletions
diff --git a/third_party/mach_override/BUILD.gn b/third_party/mach_override/BUILD.gn
index ed1c331..61af526 100644
--- a/third_party/mach_override/BUILD.gn
+++ b/third_party/mach_override/BUILD.gn
@@ -2,17 +2,17 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+assert(is_mac || is_ios)
+
config("libudis86_warnings") {
- if (is_clang) {
- cflags = [
- # syn.c contains a switch with an assert(false) in a default:
- # block. In release builds, the function is missing a return.
- "-Wno-return-type",
+ cflags = [
+ # syn.c contains a switch with an assert(false) in a default:
+ # block. In release builds, the function is missing a return.
+ "-Wno-return-type",
- # Fires once in decode.c.
- "-Wno-sometimes-uninitialized",
- ]
- }
+ # Fires once in decode.c.
+ "-Wno-sometimes-uninitialized",
+ ]
}
static_library("libudis86") {
@@ -38,21 +38,18 @@ static_library("libudis86") {
"HAVE_STRING_H",
]
- # syn.c doesn't specify a return value when it issues an assertion.
- cflags = [ "-Wno-return-type" ]
+ configs -= [
+ "//build/config/compiler:chromium_code",
- configs -= [ "//build/config/compiler:chromium_code" ]
+ # For UD_ASSERT(!"message");
+ "//build/config/clang:extra_warnings",
+ ]
configs += [
"//build/config/compiler:no_chromium_code",
# Must be after no_chromium_code for warning flags to be ordered correctly.
":libudis86_warnings",
]
-
- if (is_clang) {
- # For UD_ASSERT(!"message");
- configs -= [ "//build/config/clang:extra_warnings" ]
- }
}
static_library("mach_override") {