summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
Diffstat (limited to 'third_party')
-rw-r--r--third_party/yasm/yasm.gyp26
1 files changed, 26 insertions, 0 deletions
diff --git a/third_party/yasm/yasm.gyp b/third_party/yasm/yasm.gyp
index 28fd25b..f9f4242 100644
--- a/third_party/yasm/yasm.gyp
+++ b/third_party/yasm/yasm.gyp
@@ -158,6 +158,19 @@
],
'defines': [ '<@(yasm_defines)' ],
'cflags': [ '<@(yasm_cflags)', ],
+ 'conditions': [
+ ['clang==1', {
+ 'xcode_settings': {
+ 'WARNING_CFLAGS': [
+ # yasm passes a `const elf_machine_sym*` through `void*`.
+ '-Wno-incompatible-pointer-types',
+ ],
+ },
+ 'cflags': [
+ '-Wno-incompatible-pointer-types',
+ ],
+ }],
+ ],
'rules': [
{
'rule_name': 'generate_gperf',
@@ -527,6 +540,19 @@
'cflags': [
'-std=gnu99',
],
+ 'conditions': [
+ ['clang==1', {
+ 'xcode_settings': {
+ 'WARNING_CFLAGS': [
+ # re2c is missing CLOSEVOP from one switch.
+ '-Wno-switch-enum',
+ ],
+ },
+ 'cflags': [
+ '-Wno-switch-enum',
+ ],
+ }],
+ ],
},
{
'target_name': 'genmodule',