OLD | NEW |
---|---|
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
225 ], | 225 ], |
226 'ldflags': [ | 226 'ldflags': [ |
227 '-fsanitize=thread', | 227 '-fsanitize=thread', |
228 '-pie', | 228 '-pie', |
229 ], | 229 ], |
230 'defines': [ | 230 'defines': [ |
231 'THREAD_SANITIZER', | 231 'THREAD_SANITIZER', |
232 ], | 232 ], |
233 }, | 233 }, |
234 }], | 234 }], |
235 ['clang==1', { | |
236 'target_defaults': { | |
237 # Remove once issue 3753 is fixed. | |
238 'cflags_cc': [ '-Wno-inconsistent-missing-override', | |
239 '-Wno-unknown-warning-option' ], | |
240 }, | |
241 }], | |
235 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 242 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
236 or OS=="netbsd"', { | 243 or OS=="netbsd"', { |
237 'target_defaults': { | 244 'target_defaults': { |
238 'cflags': [ | 245 'cflags': [ |
239 '-Wall', | 246 '-Wall', |
240 '<(werror)', | 247 '<(werror)', |
241 '-W', | 248 '-W', |
242 '-Wno-unused-parameter', | 249 '-Wno-unused-parameter', |
243 '-Wno-long-long', | 250 '-Wno-long-long', |
244 '-pthread', | 251 '-pthread', |
245 '-fno-exceptions', | 252 '-fno-exceptions', |
246 '-pedantic', | 253 '-pedantic', |
247 # Don't warn about the "struct foo f = {0};" initialization pattern. | 254 # Don't warn about the "struct foo f = {0};" initialization pattern. |
248 '-Wno-missing-field-initializers', | 255 '-Wno-missing-field-initializers', |
249 ], | 256 ], |
250 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ], | 257 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x', '-Wnoi nconsistent-missing-override' ], |
Michael Achenbach
2014/12/11 18:26:39
Guess this part ends up at the gcc command-line an
| |
251 'ldflags': [ '-pthread', ], | 258 'ldflags': [ '-pthread', ], |
252 'conditions': [ | 259 'conditions': [ |
253 [ 'visibility=="hidden" and v8_enable_backtrace==0', { | 260 [ 'visibility=="hidden" and v8_enable_backtrace==0', { |
254 'cflags': [ '-fvisibility=hidden' ], | 261 'cflags': [ '-fvisibility=hidden' ], |
255 }], | 262 }], |
256 [ 'component=="shared_library"', { | 263 [ 'component=="shared_library"', { |
257 'cflags': [ '-fPIC', ], | 264 'cflags': [ '-fPIC', ], |
258 }], | 265 }], |
259 ], | 266 ], |
260 }, | 267 }, |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
444 ], | 451 ], |
445 }], | 452 }], |
446 ['clang==1 and OS=="win"', { | 453 ['clang==1 and OS=="win"', { |
447 'make_global_settings': [ | 454 'make_global_settings': [ |
448 # On Windows, gyp's ninja generator only looks at CC. | 455 # On Windows, gyp's ninja generator only looks at CC. |
449 ['CC', '<(make_clang_dir)/bin/clang-cl'], | 456 ['CC', '<(make_clang_dir)/bin/clang-cl'], |
450 ], | 457 ], |
451 }], | 458 }], |
452 ], | 459 ], |
453 } | 460 } |
OLD | NEW |